joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c07ec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x532598], ebx
push esi
push edi
jne 0x4c086c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c08a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4fc6ac
push edi
call esi
test eax, eax
mov dword [0x532598], eax
je 0x4c08a7
push 0x4fc69c
push edi
call esi
push 0x4fc688
push edi
mov dword [0x53259c], eax
call esi
cmp dword [0x531e14], 2
mov dword [0x5325a0], eax
jne 0x4c086c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x5325a8], eax
je 0x4c086c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x5325a4], eax
mov eax, dword [0x5325a4]
test eax, eax
je 0x4c08b1
call eax
test eax, eax
je 0x4c0898
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5325a8]
test eax, eax
je 0x4c0898
test byte [ebp - 8], 1
jne 0x4c08b1
cmp dword [0x531e20], 4
jb 0x4c08ab
or byte [ebp + 0x12], 0x20
jmp 0x4c08d0
xor eax, eax
jmp 0x4c08e0
or byte [ebp + 0x12], 4
jmp 0x4c08d0
mov eax, dword [0x53259c]
test eax, eax
je 0x4c08d0
call eax
mov ebx, eax
test ebx, ebx
je 0x4c08d0
mov eax, dword [0x5325a0]
test eax, eax
je 0x4c08d0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x532598]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c1106
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.004b84fa
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4c124b
push 2
push esi
push dword [ebp + 8]
call fcn.004b84fa
add esp, 0xc
cmp eax, ebx
je 0x4c124b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4c11ee
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4c117f
call fcn.004b1b35
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x4c1236
push 0x8000
push dword [ebp + 8]
call fcn.004c2136
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x4c1199
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004b4ed6
add esp, 0xc
cmp eax, 0xffffffff
je 0x4c11b5
sub edi, eax
test edi, edi
jg 0x4c1191
jmp 0x4c11cd
call fcn.004b1b48
cmp dword [eax], 5
jne 0x4c11ca
call fcn.004b1b35
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004c2136
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4c1236
jge 0x4c1236
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b84fa
push dword [ebp + 8]
call fcn.004b1869
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4c1236
call fcn.004b1b35
mov dword [eax], 0xd
call fcn.004b1b48
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004b84fa
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4c124d
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4c2239
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4fc758
call fcn.004b4c68
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x5325cc], edi
jne 0x4c227d
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c2268
mov dword [0x5325cc], ebx
jmp 0x4c227d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c227d
mov dword [0x5325cc], 2
mov eax, dword [0x5325cc]
cmp eax, ebx
jne 0x4c229d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4c235f
cmp eax, 2
je 0x4c22a6
cmp eax, edi
jne 0x4c22ce
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4c22b9
mov eax, dword [0x5324f0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4c22d5
xor eax, eax
jmp 0x4c235f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004ae230
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4c2308
cmp esi, edi
jne 0x4c231d
mov ecx, dword [ebp - 0x20]
call fcn.004b79d2
mov esi, eax
cmp esi, edi
je 0x4c22ce
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4c2350
cmp dword [ebp + 0x14], edi
jne 0x4c233a
push edi
push edi
jmp 0x4c2340
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4c235c
push esi
call fcn.004ae5ad
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004b4ca3
ret
Function at 0x4c2368
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4fc768
call fcn.004b4c68
xor esi, esi
cmp dword [0x5325d0], esi
jne 0x4c23ac
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c2397
mov dword [0x5325d0], edi
jmp 0x4c23ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c23ac
mov dword [0x5325d0], 2
mov eax, dword [0x5325d0]
cmp eax, 2
je 0x4c248b
cmp eax, esi
je 0x4c248b
cmp eax, 1
jne 0x4c23f1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4c23da
mov eax, dword [0x5324f0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4c23f8
xor eax, eax
jmp 0x4c249d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004ae230
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4c242e
cmp edi, esi
jne 0x4c2447
lea ecx, [ebx + ebx]
call fcn.004b79d2
mov edi, eax
cmp edi, esi
je 0x4c23f1
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c247a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4c2464
push esi
push esi
jmp 0x4c246a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4c2486
push edi
call fcn.004ae5ad
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4c249d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004b4ca3
ret
Function at 0x4c2be1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x4c2c49
push 0x3d
push esi
call fcn.004b0b3f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x4c2c49
cmp esi, eax
je 0x4c2c49
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x531e34]
sete cl
cmp eax, dword [0x531e38]
mov dword [ebp - 4], ecx
jne 0x4c2c2f
mov edi, eax
call fcn.004c2b82
mov dword [0x531e34], eax
cmp eax, ebx
jne 0x4c2c88
cmp dword [ebp + 0xc], ebx
je 0x4c2c51
cmp dword [0x531e3c], ebx
je 0x4c2c51
call fcn.004c1fa3
test eax, eax
je 0x4c2c88
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4c2d8c
push 4
pop ecx
call fcn.004b79d2
cmp eax, ebx
mov dword [0x531e34], eax
je 0x4c2c49
mov dword [eax], ebx
cmp dword [0x531e3c], ebx
jne 0x4c2c88
push 4
pop ecx
call fcn.004b79d2
cmp eax, ebx
mov dword [0x531e3c], eax
je 0x4c2c49
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x531e34]
sub edi, esi
push esi
call fcn.004c2b35
mov edi, eax
test edi, edi
pop ecx
jl 0x4c2ce2
cmp dword [ebx], 0
je 0x4c2ce2
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004ae5ad
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4c2cc9
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x4c2d16
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4c2cc0
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.004b7a48
test eax, eax
mov esi, dword [ebp + 8]
je 0x4c2d16
jmp 0x4c2d11
cmp dword [ebp - 4], 0
jne 0x4c2d85
test edi, edi
jge 0x4c2cf2
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.004b7a48
test eax, eax
je 0x4c2c49
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x531e34], eax
cmp dword [ebp + 0xc], 0
je 0x4c2d70
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c2d21
sub eax, edx
lea ecx, [eax + 2]
call fcn.004b79d2
mov edi, eax
test edi, edi
je 0x4c2d70
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x4c2d3c
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4c2d69
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004ae5ad
pop ecx
cmp dword [ebp - 4], 0
je 0x4c2d7d
push esi
call fcn.004ae5ad
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4c2c4c
push esi
call fcn.004ae5ad
pop ecx
xor eax, eax
jmp 0x4c2c4c
Function at 0x4c6cf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004ae230
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4c6dbb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4c6dbb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4c6d6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4c6d79
or bh, 8
and edi, 0x8000000
je 0x4c6d94
mov eax, dword [0x5339fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4c6dbb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c7190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4c71bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4c71df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4c71fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4cd5c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4cd5eb
cmp dword [edi + 0x3c], 0
jne 0x4cd5eb
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004df0f7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004cd62a
pop edi
pop esi
pop ebx
ret 8

Function at 0x4ced66
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ced9e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d2708
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d26e0
jmp 0x4cedaa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cedae
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x531760
mov ecx, edi
call fcn.004d23ea
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4cee01
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4cee14
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004d2708
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004d26e0
jmp 0x4cee14
mov ecx, esi
call fcn.004d14d4
test eax, eax
je 0x4cee14
push edi
mov ecx, eax
call fcn.004ced66
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4d0b68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d0baa
call fcn.004df0f7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d0baa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d0ba1
xor eax, eax
jmp 0x4d0bb2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d0bb8
pop edi
pop esi
pop ebx
ret 4
Function at 0x4e7770
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x4e77ee
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x19dc0efd
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x702327ec
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings
Get hostname
Get networking interfaces
Identify system language via api
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x344
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x407020
push 0x407088
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetVersionExA
push 0x407078
mov dword [esp + 0x88], eax
call esi
push eax
call edi
push 0x407010
push 0x407088
mov ebx, eax
call esi
push eax
call edi
push str.GetSystemInfo
push 0x407078
mov dword [esp + 0x74], eax
call esi
push eax
call edi
push str.GlobalMemoryStatusEx
push 0x407078
mov dword [esp + 0x90], eax
call esi
push eax
call edi
push str.RegQueryValueExA
push 0x407088
mov dword [esp + 0x94], eax
call esi
push eax
call edi
mov dword [esp + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ebp, dword [esp + 0x358]
and eax, 0xffff
mov ecx, 0x27
lea edi, [esp + 0xd0]
mov dword [ebp], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0xd0], 0x9c
push eax
call ebx
xor ebx, ebx
mov cl, 0x32
mov al, 0x30
mov byte [esp + 0x28], 0x4e
mov byte [esp + 0x29], 0x54
mov byte [esp + 0x2a], bl
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], al
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], al
mov byte [esp + 0x3c], bl
mov byte [esp + 0x14], 0x58
mov byte [esp + 0x15], 0x50
mov byte [esp + 0x16], bl
mov byte [esp + 0x40], cl
jmp loc.0041359a

Function at 0x401940
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 8

Function at 0x401c64
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x407164
push 0x407180
push ebx
call esi
jmp loc.00412907

Function at 0x401e6a
Capabilities:
Packed with generic packer
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp + 0xc]
push 4
push eax
push 8
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne fcn.00401ebb
push eax
lea ecx, [ebp + 0xc]
push eax
push ecx
push eax
push eax
lea eax, [ebp - 0xc]
push 0xc
push eax
push 0x98000004
push dword [ebp + 8]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x2bf20
mov dword [ebp - 4], 0x2710
jmp loc.004121ea

Function at 0x40221a
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x407144
push str.GetShortPathNameA
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetEnvironmentVariableA
push ebx
jmp loc.004135db
Function at 0x402449
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jne 0x402462
push 1
pop eax
jmp fcn.004024d7
jmp loc.0041243f

Function at 0x402c3a
Capabilities:
Packed with generic packer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402caf
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
mov dword [ebp + 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x402ca7
lea eax, [ebp - 0xc]
push 0xa
push eax
jmp loc.00413ad2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402f20
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x407144
push str.GetLastError
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.ExitProcess
push ebx
call esi
push eax
call edi
push str.GetCurrentThreadId
push ebx
call esi
push eax
call edi
push str.CreateMutexA
push ebx
call esi
push eax
call edi
push str.GetModuleFileNameA
push ebx
call esi
push eax
call edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push str.Sleep
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push 0x104
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [ebp - 8]
jmp loc.00412dde

Function at 0x403005
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.ADVAPI32.dll
push str.RegCloseKey
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.RegOpenKeyExA
push ebx
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
push 0x40
mov dword [ebp - 0x30], eax
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], dl
jmp loc.00413802