joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002bb0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x414
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push 0x400
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x42c]
not ecx
mov edx, dword [eax]
dec ecx
cmp edx, 0x258
jbe 0x10002c1b
mov dword [eax], 0x258
mov edi, dword [esp + 0x430]
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov edx, dword [eax]
mov eax, dword [edi]
mov dword [esp + 0x1c], edx
inc eax
lea edx, [esp + 0x14]
mov dword [esp + 0x20], eax
push 0x410
push edx
lea eax, [esp + 0x2c]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
push ecx
push esi
call ebp
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret

Function at 0x100033c0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
xor esi, esi
cmp eax, esi
je 0x10003402
lea ecx, [esp + 0x10]
mov dword [esp + 4], esi
push ecx
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push 0x10003410
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
add esp, 8
ret

Function at 0x10003460
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
sub esp, 8
cmp eax, ecx
je 0x100034a5
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push 0x10003410
mov dword [esp + 8], 1
mov dword [esp + 0xc], edx
call dword [sym.imp.USER32.dll_EnumWindows]
add esp, 8
ret
Function at 0x100035f0
Capabilities:
Set global application hook

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push esi
push edi
mov edi, dword [esp + 0x40]
push edi
call ebx
mov esi, eax
push esi
call ebx
test eax, eax
jne 0x10003603
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
push 0x8438
push esi
call ebx
test eax, eax
je 0x100036d6
push edi
call fcn.10001270
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000366f
push eax
mov eax, dword [0x10010238]
push eax
push esi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 1
push esi
push str.tooltips_class32
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x100036d6
push esi
push edi
call fcn.10001290
add esp, 8
mov eax, dword [0x10010280]
test eax, eax
jne 0x10003693
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10003530
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x10010280], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], 0x2c
push ecx
push edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x3c]
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
push 0
push 0x404
push esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0x10

Function at 0x10003790
Capabilities:
Get session user name

Disassembly:
sub esp, 0x1c8
mov ecx, dword [0x10010244]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x3c]
push 0xc8
push eax
push 5
push ecx
call esi
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
push eax
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 8]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x108]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x10010244]
add esp, 0xc
lea ecx, [esp + 0x3c]
push 0xc8
push ecx
push 6
push edx
call esi
lea eax, [esp + 0x3c]
push 0x10
mov edx, dword [esp + 0x1d4]
lea ecx, [esp + 0x108]
push eax
push ecx
push edx
call sym.mxdlgsup.dll_MXMessageBox
add esp, 0x10
pop esi
add esp, 0x1c8
ret 4
Function at 0x10003860
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
jbe 0x100038ce
add eax, 3
and al, 0xfc
call fcn.10004db0
mov edi, esp
test edi, edi
je 0x100038ce
mov ecx, dword [ebp + 8]
push edi
push esi
push ebx
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100038ce
lea edx, [ebp - 4]
lea eax, [ebp - 8]
push edx
push eax
push 0x1000d494
push edi
call sub.VERSION.dll_VerQueryValueA
mov ebx, eax
test ebx, ebx
je 0x100038ce
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov ecx, 0xd
xor eax, eax
lea esp, [ebp - 0x14]
rep stosd dword es:[edi], eax
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
push 2
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10003d7d
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
push esi
call fcn.10003d90
add esp, 8
test eax, eax
je 0x10003d4a
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
push 0
push esi
lea ecx, [edx + eax*4]
add ecx, esi
push ecx
push 4
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, esi
pop edi
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x10003e40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x10010258]
cmp eax, 0x10
jl 0x10003e5d
cmp eax, 0x100
jg 0x10003e5d
push 0x2eef0ee
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
ret
mov eax, dword [0x10010238]
push esi
push edi
push 2
push 0x69
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x10010238]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push 0
push esi
call dword [sym.imp.GDI32.dll_CreateDIBPatternBrushPt]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4071d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e54cb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
sub eax, 0x10
je 0x4072bf
sub eax, 0x455
je 0x407226
sub eax, 0x6d
jne 0x4072da
push 1
call fcn.00421799
jmp 0x4072da
push 0x84
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004be240
add esp, 0xc
lea ecx, [ebp - 0x94]
call fcn.004196ad
push str.MultiWeChat.exe
mov dword [ebp - 4], 0
sub esp, 0x18
movups xmm0, xmmword [0x525ad8]
mov eax, esp
push str._s_s
movups xmmword [eax], xmm0
movq xmm0, qword [0x525ae8]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x94]
push eax
call fcn.00419c31
add esp, 0x24
lea ecx, [ebp - 0x94]
push 1
push 0
push 0
call fcn.004e33a0
push eax
push 0x50f3f8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
mov ecx, esi
call fcn.00421799
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00419770
jmp 0x4072da
mov ecx, dword [0x525a80]
push 0
push 0
push 0x4d2
call fcn.00421667
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004207ae
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410790
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e62fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
call fcn.00410650
test al, al
jne 0x4107d2
xor eax, eax
jmp 0x4109c9
push str..
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.0040fb80
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2d8]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2dc], eax
cmp eax, 0xffffffff
je 0x41099c
mov ebx, dword [ebp + 8]
nop word [eax + eax]
lea eax, [ebp - 0x2ac]
push eax
push 0x50f620
call fcn.004c2493
add esp, 8
test eax, eax
je 0x410975
lea eax, [ebp - 0x2ac]
push eax
push 0x50f624
call fcn.004c2493
add esp, 8
test eax, eax
je 0x410975
push 0x50f3f4
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0040fb80
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.0040ce60
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x410898
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404840
xor eax, eax
mov dword [ebp - 0x14], 7
test byte [ebp - 0x2d8], 0x10
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
je 0x41094d
test bl, bl
je 0x41093b
push 0x50f3f4
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.0040fb80
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.0040ce60
add esp, 8
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00410ae0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x410908
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404840
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x41093b
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00404840
push 1
push ebx
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.00410790
add esp, 8
jmp 0x41095c
test bl, bl
jne 0x41095c
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.004109f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x410975
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00404840
lea eax, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410820
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
mov ecx, dword [ebp - 0x44]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, 8
jb 0x4109c7
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00404840
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret
Function at 0x43a76d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43a823
movzx eax, word [esi]
test ax, ax
je 0x43a823
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x43a7ad
cmp ax, 0x5c
jne 0x43a7af
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x43a7a1
cmp edi, esi
je 0x43a7f6
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004c23cd
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x43a833
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0043a76d
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004c2390
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004c231f
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret
call fcn.004a5b10
int3

Function at 0x43adf8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x43ae74
cmp dword [edi + 4], 0xffffffff
jne 0x43ae74
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x50f3f4
push esi
call fcn.004c231f
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x43ae46
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x43ae46
mov eax, 0x2000000
jmp 0x43ae79
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d313
add esp, 0x10
test eax, eax
jne 0x43ae64
mov eax, dword [ebp - 4]
jmp 0x43ae79
push eax
call fcn.0043da1b
mov dword [edi], eax
mov eax, dword [0x524a14]
pop ecx
jmp 0x43ae79
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a4ac0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x520320]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a4aed
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4a4b34
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4a4b3a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4a4b9b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4a4b60
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4a4bc7
mov eax, dword [esi + 4]
push 1
push 0x5019be
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5019bf
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4a4ba0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a7eb5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4d87a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d8627

Function at 0x4dbb18
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004db7d8
Function at 0x403398
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405668
test esi, esi
jne 0x4033d0
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004057a4
jmp 0x4033ee
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040327c
mov edi, eax
test esi, esi
je 0x4033ee
cmp dword [ebx], 0
je 0x4033ee
dec esi
jmp 0x4033d7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403a58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x469020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403af0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x403ad0
xor eax, eax
push ebp
push 0x403ac9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ad0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
movzx eax, word [0x469020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x469020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404be4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b054], 0
je 0x404c45
cmp word [0x46b330], 0xd7b2
jne 0x404c0d
cmp dword [0x46b338], 0
jbe 0x404c0d
mov eax, 0x46b32c
call dword [0x46b348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404c70
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x46902c], 0
jne 0x404c61
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x469030], 0
je 0x404e16
mov edx, esi
mov eax, ebx
call dword [0x469030]
jmp 0x404e25
mov eax, 8
call fcn.00402fc4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x46b055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404db8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4093c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x46db60
push 0xa
push 0x409454
mov eax, dword [0x46db50]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x4093e4
call fcn.00410fbc
push ebx
mov eax, dword [0x46db50]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x4093fb
call fcn.00410fbc
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40940d
call fcn.00410fbc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x46db64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x46db68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x46db6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x46db70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x46db74], ecx
add edx, dword [eax + 0x14]
mov dword [0x46db78], edx
pop esi
pop ebx
ret

Function at 0x40aa10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40aab9
test eax, edx
je 0x40aabc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40aa39
push edx
mov edx, eax
mov eax, esp
call fcn.0040586c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40aa4f
push eax
lea eax, [esp + 8]
call fcn.0040586c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40aa5e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40aa85
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40aa9f
add ecx, 4
js 0x40aa76
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40aa9c
push eax
mov eax, ecx
mov edx, 2
call fcn.00404e90
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40aa83
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40aa85
xor eax, eax
ret
test eax, eax
je 0x40aacc
test edx, edx
jne 0x40aa20
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40eb14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x40eb4d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004057a4
jmp 0x40eb56
mov eax, ebx
mov edx, esi
call fcn.00405668
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40eb60
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x40eb82
movzx eax, word [esp]
jmp 0x40eb84
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret