joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bf20
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
mov dword [ebp - 0x4a8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44bf6e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret
push edi
push 0x40
lea edx, [ebp - 0x444]
push 0
push edx
mov dword [ebp - 0x4a4], 0
mov dword [ebp - method.fMD5Tool.virtual_0], vtable.fMD5Tool.0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x49c], 0x67452301
mov dword [ebp - 0x498], 0xefcdab89
mov dword [ebp - 0x494], 0x98badcfe
mov dword [ebp - 0x490], 0x10325476
call fcn.00500080
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea eax, [ebp - 0x4a4]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
mov byte [ebp - 0x444], 0x80
call edi
test eax, eax
je 0x44c039
jmp 0x44c000
mov eax, dword [ebp - 0x4a4]
test eax, eax
je 0x44c039
push eax
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x4a0]
call fcn.0044bc90
push 0
lea eax, [ebp - 0x4a4]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
call edi
test eax, eax
jne 0x44c000
mov edx, dword [ebp - 0x4a8]
push edx
lea ecx, [ebp - 0x4a0]
call fcn.0044bd60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00500397
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], eax
lea eax, [esi + 4]
push eax
or edi, 0xffffffff
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi], edi
je 0x44c2cc
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x14], eax
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0xc]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0
push edx
mov word [ebp - 0x12], ax
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44c2f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
lea ebx, [esi + 4]
push ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esi]
cmp esi, edi
je 0x44c38c
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push 0
push edx
push eax
push esi
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
je 0x44c38c
mov ecx, dword [ebp - 0x12]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x10]
movzx edx, ax
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push ecx
mov dword [eax], edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [ebp - 0x1c]
push eax
push 0x14
push edx
call fcn.005044d8
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44c5b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x44c5c7
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
setne al
pop esi
ret
Function at 0x44ce90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [ebp + 0x1c], ecx
test ecx, ecx
je 0x44cf26
cmp word [ecx + 8], 2
push ebx
push edi
jne 0x44cef8
cmp word [ecx + 0xa], 4
jne 0x44cef8
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x44cef8
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ebx
push ecx
call fcn.0044ce20
mov dword [esi], eax
test eax, eax
je 0x44cf1a
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x44ced2
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x18]
push 0x400
push edx
push 0x401
push eax
call fcn.005044d8
add esp, 0x10
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x18
pop edi
pop ebx
mov eax, 8
pop esi
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x44cf36.11001
jmp dword [eax*4 + 0x44cf5c]
mov eax, 0x2af9
pop esi
pop ebp
ret 0x18
mov eax, 0x2afa
pop esi
pop ebp
ret 0x18
mov eax, 0x2afb
pop esi
pop ebp
ret 0x18
Function at 0x44d740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5705e8], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x44d200
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x44d4c0
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.0044d1b0
je 0x44d7b3
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x56be44]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x44d8c2
push ebx
push esi
push edi
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0050383a
push str.ws2_32
lea ecx, [ebp - 0x110]
push 0x10c
push ecx
call fcn.00504a5a
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [ebp - 0x110]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x44d82f
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x44d87b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x110]
push 0x10c
push ecx
call fcn.0050383a
push str.wship6
lea edx, [ebp - 0x110]
push 0x10c
push edx
call fcn.00504a5a
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call edi
mov esi, eax
test esi, esi
je 0x44d8bf
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x44d8e7
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [ebp + edi*8 - 0x230]
push ecx
push esi
call ebx
mov dword [ebp + edi*8 - 0x22c], eax
test eax, eax
je 0x44d8e7
inc edi
cmp edi, 3
jl 0x44d880
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
mov dword [0x56be44], edx
mov dword [0x56be4c], eax
mov dword [fcn.0044d1b0], ecx
pop edi
pop esi
pop ebx
movzx edx, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x56be44]
xor ecx, ebp
mov dword [0x5705e8], 1
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x44d8bf
Function at 0x44e7f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00500080
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e847
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
push edi
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x44e879
mov edi, dword [ebp + 8]
lea esp, [esp]
cmp dword [ebp - 0x228], edi
je 0x44e894
lea edx, [ebp - 0x230]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x44e860
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00500397
mov esp, ebp
pop ebp
ret 4

Function at 0x44e9b0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x28
mov edi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x44e9fd
mov ecx, dword [ebp - 4]
push 1
push str.SeDebugPrivilege
push ecx
mov ecx, edi
call fcn.0044e8c0
test eax, eax
jne 0x44e9fd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push eax
push ebx
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x44ea31
push ebx
push str.SeDebugPrivilege
push eax
mov ecx, edi
call fcn.0044e8c0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x44ea40
lea edx, [ebp - 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor eax, eax
cmp esi, ebx
je 0x44ea82
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44ea74
mov ecx, dword [ebp - 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44eda0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ecx
test ebx, ebx
je 0x44eef6
lea edx, [ebp - 0x210]
push edx
push 0x548e7c
push 1
push 0
push 0x54bf8c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x44eef6
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push 0x54ae6c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x44eee8
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
test edi, edi
jne 0x44ee38
mov edx, dword [0x570ddc]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x44ee3f
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
test esi, esi
je 0x44ee52
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov ecx, dword [ebp + 0x18]
test cx, cx
je 0x44ee69
mov eax, dword [ebp - 0x210]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x44ee82
mov eax, dword [ebp - 0x210]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x210]
mov edx, dword [ebp + 0x20]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x44eebe
push eax
push ebx
push 0x53d2c0
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00502777
add esp, 0x14
jmp 0x44ef57
push 0x5c
test edi, edi
je 0x44eec7
push edi
jmp 0x44eece
mov edx, dword [0x570ddc]
push edx
call fcn.004fe9d5
add esp, 8
test eax, eax
jne 0x44ef0b
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 0x1c
push eax
push ebx
push 0x545ac4
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00502777
lea eax, [ebp - 0x20c]
add esp, 0x14
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44ef30
sub eax, edx
sar eax, 1
mov ecx, 0x6b
mov dword [ebp + eax*2 - 0x212], 0x6e006c
mov word [ebp + eax*2 - 0x20e], cx
mov eax, dword [ebp - 0x214]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
lea ecx, [ebp - 0x20c]
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setns al
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x44f6b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
push 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44f70b
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f72a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x451570
Capabilities:
Check if file exists
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x210], ecx
push 0x53cbd0
mov ecx, esi
call fcn.0042ad10
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00500080
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4515d4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00403ee0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4516b5
mov eax, dword [esi]
cmp dword [eax - 0xc], 3
jg 0x45161c
add eax, 0xfffffff0
push eax
call fcn.00403b50
add esp, 4
lea edi, [eax + 0x10]
jmp 0x451657
mov eax, dword [eax - 0x10]
test eax, eax
je 0x451630
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x451640
mov edx, dword [0x56c260]
mov eax, dword [edx + 0x10]
mov ecx, 0x56c260
call eax
mov ecx, dword [esi]
push eax
push 3
push ecx
lea ecx, [ebp - 0x214]
call fcn.00403330
mov edi, dword [ebp - 0x214]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ebx, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451691
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x4516b5
mov eax, dword [ebp + 0x10]
xor ecx, ecx
shld ecx, eax, 0x14
shl eax, 0x14
cmp dword [ebp - 0x218], ecx
ja 0x4516fc
jb 0x4516b5
mov ecx, dword [ebp - 0x21c]
cmp ecx, eax
ja 0x4516fc
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4516f1
mov eax, dword [ebp + 0xc]
push 1
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
call fcn.00403b50
mov ecx, dword [ebp - 0x210]
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00450120
test eax, eax
je 0x4516fc
lea eax, [ebp + 0xc]
push eax
jmp 0x4516f5
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00423fc0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45171b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 0xc
Function at 0x452970
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x53cbd0
mov ecx, edi
call fcn.0042ad10
mov ebx, dword [ebp + 0xc]
push 0
push ebx
mov dword [ebp - 4], 0x34
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x452a1d
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047c0b3
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x452a08
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x556338
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x452a08
mov eax, dword [ebp - 8]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push 0x545c24
push ecx
call fcn.00428a30
add esp, 0x18
push edi
call fcn.004fe49e
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x454c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
mov edx, dword [0x570984]
push esi
push eax
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x454ca2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454c99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x570984]
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x570984]
push esi
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x454cf3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454ce9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push esi
push eax
call fcn.004ff9a0
add esp, 0xc
lea ecx, [ebp + 8]
push ecx
push 1
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x454d6c
mov edi, dword [ebp + 8]
test edi, edi
je 0x454d6c
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x454d5e
lea edx, [ebp - 4]
push edx
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop ebx
test edx, edx
jg 0x454d9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x455100
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp dword [esi + 0x1c0], eax
je 0x455262
push edi
push eax
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432ce0
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
mov ecx, dword [esi + 0x1c0]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebx]
push eax
push ecx
lea edx, [ebp + 8]
push str._nUpdateUIByState:_d___d_n
push edx
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx]
mov dword [esi + 0x1c0], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
xor ecx, ecx
dec edx
xor edi, edi
lea eax, [ecx + 5]
cmp edx, 6
ja case.default.0x455197
jmp dword [edx*4 + 0x455274]
xor edi, edi
mov dword [esi + 0x1b8], ecx
mov ecx, 1
mov dword [esi + 0x19c], ecx
jmp 0x4551e6
mov ecx, 1
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551e0
mov edi, eax
xor eax, eax
jmp 0x4551a0
xor edi, edi
mov dword [esi + 0x19c], ecx
jmp 0x4551de
mov edi, eax
mov dword [esi + 0x19c], 1
xor eax, eax
mov dword [esi + 0x1b8], ecx
mov dword [esi + 0x1bc], ecx
push eax
lea ecx, [esi + 0x78]
call fcn.00479170
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x455261
mov edx, dword [esi + 0xdc]
push edi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push str._nButton_ShowWindow:_d
push eax
call fcn.00428a30
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebx
pop ebp
ret 4