joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018f0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44a930]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0041f350
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x70], 2
jne 0x401943
cmp dword [ebp - 0x7c], 5
jne 0x401943
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
je 0x401945
xor al, al
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0041f0ad
add ebp, 0x98
leave
ret

Function at 0x401a00
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44a930]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0041f350
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x70], 2
jne 0x401a4f
cmp dword [ebp - 0x7c], 6
jb 0x401a4f
mov al, 1
jmp 0x401a51
xor al, al
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0041f0ad
add ebp, 0x98
leave
ret

Function at 0x401a66
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x44a930]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
mov eax, dword [ebp + 0x1c0]
push ebx
mov ebx, dword [ebp + 0x1c4]
test ebx, ebx
mov dword [ebp - 0x80], eax
jne 0x401a9c
xor eax, eax
jmp 0x401b62
and dword [ebp - 0x78], 0
push 0x228
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0041f350
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x401a95
push esi
lea ecx, [ebp - 0x78]
push ecx
push eax
mov dword [ebp - 0x78], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401b54
push ebx
call fcn.004377c3
mov esi, eax
lea eax, [ebp - 0x54]
push eax
call fcn.004377c3
pop ecx
pop ecx
mov cx, word [eax]
cmp cx, word [esi]
jne 0x401b13
test cx, cx
je 0x401b0f
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x401b13
add eax, 4
add esi, 4
test cx, cx
jne 0x401aed
xor eax, eax
jmp 0x401b18
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401b31
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401ada
xor esi, esi
inc esi
jmp 0x401b56
push dword [ebp - 0x70]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x80]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x401b56
xor esi, esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x1b4]
xor ecx, ebp
pop ebx
call fcn.0041f0ad
add ebp, 0x1b8
leave
ret
Function at 0x401bcd
Capabilities:
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x44a930]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.00401b78
xor ebx, ebx
cmp word [0x44be00], bx
je 0x401d03
push 0x3fe
lea eax, [ebp - 0x442]
push ebx
push eax
mov word [ebp - 0x444], bx
call fcn.0041f350
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x44be00]
mov word [ebp + eax - 0x444], cx
inc eax
inc eax
cmp cx, bx
jne 0x401c13
push edi
lea edi, [ebp - 0x444]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x401c32
push esi
push 5
pop ecx
mov esi, str.MyIEData_
rep movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x444]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x444]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x401c60
mov esi, str.main.ini
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x444]
push eax
movsd dword es:[edi], dword [esi]
push 0x43a9e4
push 0x43a9e8
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x43a9f4
call esi
lea eax, [ebp - 0x444]
push eax
push ebx
push 0x43aa04
push 0x43aa10
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebx
mov dword [ebp - 0x448], eax
call fcn.0041f02c
mov edi, eax
sub eax, dword [ebp - 0x448]
pop ecx
cmp eax, 0x384
jb 0x401d01
push 0x3e
lea eax, [ebp - 0x42]
push ebx
push eax
mov word [ebp - 0x44], bx
call fcn.0041f350
push edi
lea eax, [ebp - 0x44]
push 0x43aa20
push eax
call fcn.00401000
add esp, 0x18
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x44]
push eax
push str.FLAG7
push str.SYSTEM
call esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041f0ad
leave
ret

Function at 0x401d10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44a930]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401d7c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x401d71
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043793b
test eax, eax
pop ecx
pop ecx
je 0x401d8c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401d51
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041f0ad
leave
ret
mov eax, dword [ebp - 0x228]
jmp 0x401d7e
Function at 0x401dbf
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x44a930]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x401e1f
cmp dword [ebp - 0x114], 5
jne 0x401e1f
cmp dword [ebp - 0x110], 0
jne 0x401e0e
push dword [ebp + 8]
call fcn.00401035
jmp 0x401e1f
cmp dword [ebp - 0x110], 1
jb 0x401e1f
push dword [ebp + 8]
call fcn.00401136
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041f0ad
leave
ret

Function at 0x401e2d
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 0xc]
push eax
mov edi, ecx
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00404799
xor esi, esi
push esi
call fcn.00407222
mov ecx, edi
mov dword [esp], 0x43aa58
call fcn.00406720
push str.mydriversetup1.01
push 0x80
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x401f21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401f21
call fcn.004018f0
test al, al
je 0x401f21
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push str.uninstall
push edi
call fcn.0041eeb2
test eax, eax
pop ecx
pop ecx
je 0x401ec4
call fcn.004017e9
jmp 0x401f21
push str.install
push edi
call fcn.0041eeb2
test eax, eax
pop ecx
pop ecx
je 0x401f21
push esi
call fcn.00401dbf
pop ecx
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x401d94
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x401efd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.rstray.exe
call fcn.00401d10
test eax, eax
pop ecx
jne 0x401f1c
call fcn.004016f1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401bcd
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x406d6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x406db1
call fcn.0040845b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x406db1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x406df4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x406ddd
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x406ddd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x406df1
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40960e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40963c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40965a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00409578
jmp 0x40965a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40965a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00409578
test edi, edi
mov eax, edi
jne 0x409644
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44c538]
test ecx, ecx
je 0x40971d
jmp 0x40960d
ret 8

Function at 0x40eca4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40ece7
call fcn.0040845b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ece7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40ed02
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040e85e
test ebx, ebx
mov esi, eax
je 0x40ed00
test edi, edi
je 0x40ed00
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41f0ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a930]
jne 0x41f0b7
repz ret
jmp fcn.00425f68
Function at 0x42e562
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00424d16
xor ebx, ebx
cmp dword [0x44ed50], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42e637
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42e5a2
xor eax, eax
jmp 0x42e6fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42e59b
push eax
call fcn.00424cb3
mov dword [esp], 0x43e76c
push edi
mov dword [0x44ed50], eax
call esi
push eax
call fcn.00424cb3
mov dword [esp], 0x43e758
push edi
mov dword [0x44ed54], eax
call esi
push eax
call fcn.00424cb3
mov dword [0x44ed58], eax
lea eax, [ebp - 8]
push eax
call fcn.00420be9
test eax, eax
pop ecx
pop ecx
je 0x42e605
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041f7e5
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42e637
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00424cb3
cmp eax, ebx
pop ecx
mov dword [0x44ed60], eax
je 0x42e637
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424cb3
pop ecx
mov dword [0x44ed5c], eax
mov eax, dword [0x44ed5c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42e6b0
cmp dword [0x44ed60], esi
je 0x42e6b0
push eax
call fcn.00424d1f
pop ecx
call eax
cmp eax, ebx
je 0x42e67d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44ed60]
call fcn.00424d1f
pop ecx
call eax
test eax, eax
je 0x42e67d
test byte [ebp - 0x18], 1
jne 0x42e6b0
lea eax, [ebp - 0xc]
push eax
call fcn.00420c20
test eax, eax
pop ecx
je 0x42e698
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041f7e5
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42e6a7
or dword [ebp + 0x10], 0x200000
jmp 0x42e6e1
or dword [ebp + 0x10], 0x40000
jmp 0x42e6e1
mov eax, dword [0x44ed54]
cmp eax, esi
je 0x42e6e1
push eax
call fcn.00424d1f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42e6e1
mov eax, dword [0x44ed58]
cmp eax, esi
je 0x42e6e1
push dword [ebp - 4]
push eax
call fcn.00424d1f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44ed50]
call fcn.00424d1f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43725c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44a930]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004371f1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041f350
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4372ab
cmp dword [ebp - 0x1c], 5
jb 0x4372c3
jmp 0x4372bf
cmp dword [ebp - 0x10], 1
jne 0x4372c3
cmp dword [ebp - 0x1c], 4
ja 0x4372bf
jne 0x4372c3
cmp dword [ebp - 0x18], 0
jbe 0x4372c3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4409c4
call fcn.004370c5
test eax, eax
jge 0x4372e4
mov byte [0x44c2a8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f0ad
add ebp, 0x78
leave
ret

Function at 0x40ca80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40caa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40caa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ca98
mov eax, 1
add ebx, ebx
jne 0x40cabb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40cab0
jne 0x40cacc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cab0
xor ecx, ecx
sub eax, 3
jb 0x40cae0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40cb52
mov ebp, eax
add ebx, ebx
jne 0x40caeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40caf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cb1c
inc ecx
add ebx, ebx
jne 0x40cb08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cafd
jne 0x40cb19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cafd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cb3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cb2d
jmp 0x40ca9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cb3c
add edi, ecx
jmp 0x40ca9e
pop esi
mov edi, esi
mov ecx, 0x169
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40cb5a
cmp byte [edi], 1
jne 0x40cb5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40cb5f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cbce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd31c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd3a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cb8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd3ac]
or eax, eax
je 0x40cbc8
mov dword [ebx], eax
add ebx, 4
jmp 0x40cba9
call dword [esi + 0xd3b0]
popal
jmp section.UPX0
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x394d7b7a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x6db46f12
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x435d60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 4], eax
cmp dword [0x4427d4], 0
jne 0x435d8c
push 0x1019
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x435d8c
xor eax, eax
jmp 0x435dc0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
cmp eax, 0xfffffffe
je 0x435d9b
xor eax, eax
jmp 0x435dc0
push 0x10022
call dword [ebp - 4]
test eax, eax
jne 0x435db8
mov ecx, section.UPX0
sub ecx, 0x51615
mov dword [0x4427d8], ecx
mov eax, dword [0x4427d8]
add eax, 4
mov esp, ebp
pop ebp
ret

Function at 0x436500
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x436518
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x4365bc
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x4365b7
mov ecx, dword [ebp - 8]
push ecx
call fcn.004364e0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x436576
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x436576
xor eax, eax
jmp 0x4365bc
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x43650f
mov esp, ebp
pop ebp
ret
Function at 0x403020
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47be89
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 0xc]
mov dword [esi], vtable.CAPISocket.0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x40306e
mov eax, dword [edi]
jmp 0x403070
mov eax, edi
mov byte [eax], 0
mov dword [ebp - 4], 0
push 0x40000
mov dword [esi + 0x4002c], 0x48c9bc
mov dword [esi + 0x40030], 0x40000
call fcn.0043f176
mov dword [esi + 0x40034], eax
mov dword [esi + 0x40038], 0
mov dword [esi + 0x4003c], 0
lea ebx, [esi + 0x40044]
mov byte [ebp - 4], 1
push 8
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
call fcn.0043eec7
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x4030fe
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebx]
mov dword [eax], ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40311f
mov edi, dword [edi]
mov eax, dword [0x4a5718]
mov ecx, eax
inc eax
mov byte [edi], 0
mov dword [esi + 0x24], 0
mov dword [0x4a5718], eax
test ecx, ecx
jne 0x40314a
push 0x4abe80
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi + 0x40040], 0
mov eax, esi
mov dword [esi + 0x40028], 0
mov dword [esi + 0x40058], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret