joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a86a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a868a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4af020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4df61e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004af940
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x58bc94
call fcn.004ce181
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4af0b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ce181
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4af0ac
push 0
mov ecx, eax
call fcn.004a61c0
mov dword [esi + 0xc], eax
jmp 0x4af0b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4af0b5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4d0820
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d0858
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.004ce89b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ce873
jmp 0x4d0864
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d201a
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 0x4d205c
call fcn.004d8346
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d205c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d2053
xor eax, eax
jmp 0x4d2064
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d206a
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d8876
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 0x4d88a4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d88c2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d87dc
jmp 0x4d88c2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d88c2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d87dc
test edi, edi
mov eax, edi
jne 0x4d88ac
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001cc37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x1001ccba
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1001cc84
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1001cc84
cmp edi, ebx
jge 0x1001cc84
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, edi
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1001ccb4
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1001ccb4
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push dword [esi + 0x20]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop ebx
jmp 0x1001cccc
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x1001cf62
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
cmp byte [0x100269c0], al
je 0x1001cf99
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cffd
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1001159b
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1001159b
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.1001159b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ddeb
leave
ret 0x10

Function at 0x1001d00e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100269c0], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001d03a
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001d06b
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001d069
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1001159b
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001d06b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001ddeb
leave
ret 8
Function at 0x1001d106
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100269c0], 0
mov eax, dword [ebp + 8]
je 0x1001d12e
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001d148
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1001159b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.1001ddeb
leave
ret 4

Function at 0x1001ddeb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100268b0]
jne 0x1001ddf5
repz ret
jmp fcn.1001e62c
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x181c7599
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x46e61344
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Check for software breakpoints
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x27d4453c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
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
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x73a021fd
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0xb3a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb3a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb3a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3a06a
add dl, dl
jne 0xb3a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3a0dc
xor eax, eax
add dl, dl
jne 0xb3a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3a17d
add dl, dl
jne 0xb3a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb3a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb3a075
mov eax, 1
add dl, dl
jne 0xb3a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3a0e1
sub eax, ebx
mov ebx, 1
jne 0xb3a128
mov ecx, 1
add dl, dl
jne 0xb3a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb3a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb3a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb3a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3a136
cmp eax, 0x7d00
jae 0xb3a16d
cmp eax, 0x500
jb 0xb3a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3a075
cmp eax, 0x7f
ja 0xb3a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb3a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb3a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406710
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.CNetworkColdstoneApp::IsFirstInstance__
push 2
mov esi, ecx
push 0x4437f0
call fcn.004018f0
add esp, 0xc
push str.network_exe_55F3554E_9711_4b6f_9065_2914816EC382
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi + 0x2dc], eax
je 0x406783
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40677c
push str.CNetworkColdstoneApp::IsFirstInstance___returning_FALSE
push 4
push 0x4437f0
call fcn.004018f0
mov eax, dword [esi + 0x2dc]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2dc], 0
xor eax, eax
pop esi
ret
push str.NETWORK_MUTEX_was_created
jmp 0x406788
push str.SETUP_MUTEX_was_not_created
push 0x80
push 0x4437f0
call fcn.004018f0
add esp, 0xc
push str.CNetworkColdstoneApp::IsFirstInstance___returning_TRUE
push 4
push 0x4437f0
call fcn.004018f0
add esp, 0xc
mov eax, 1
pop esi
ret
Function at 0x408cf0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430cb8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [eax + 4]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov esi, ecx
jne 0x408d1f
mov eax, 0x433518
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0xc], edi
jne 0x408d37
push str.gethostbyaddr__
jmp 0x408d43
cmp word [edi + 0xa], 4
je 0x408d77
push str.Non_IP_v4
push str._s_failed_n
push 0x4437f0
call fcn.0040ba1f
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x2ec], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
mov ecx, dword [esp + 0x44]
push ebp
mov ebp, dword [ecx + 4]
mov esi, dword [ebp]
cmp esi, ebp
je 0x408d9d
mov ecx, dword [esp + 0x48]
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x44]
push eax
push edx
call fcn.00404a90
cmp esi, ebp
jne 0x408d86
mov eax, dword [edi + 0xc]
cmp dword [eax], ebx
je 0x408ecd
mov dword [esp + 0x44], ebx
jmp 0x408db2
mov edi, dword [esp + 0x10]
movsx ecx, word [edi + 0xa]
mov edx, dword [esp + 0x44]
lea edi, [esp + 0x28]
mov esi, dword [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dl, byte [esp + 0x48]
mov esi, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.004044e0
test al, al
je 0x408e2c
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00404440
mov edi, dword [esp + 0x48]
push 0x18
mov dword [esp + 0x40], ebx
mov esi, dword [edi + 4]
mov ebp, dword [esi + 4]
call fcn.0042a29b
add esp, 4
cmp esi, ebx
mov ecx, esi
jne 0x408e4c
mov ecx, eax
mov dword [eax], ecx
cmp ebp, ebx
mov ecx, ebp
jne 0x408e56
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x14]
add eax, 8
push ecx
push eax
call fcn.00405c30
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x20]
add esp, 8
inc edx
cmp eax, ebx
mov dword [edi + 8], edx
mov dword [esp + 0x3c], 0xffffffff
je 0x408ea6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x408e9d
cmp al, 0xff
je 0x408e9d
dec al
mov byte [ecx], al
jmp 0x408ea6
push ecx
call fcn.0042a2c4
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
add ecx, 4
mov dword [esp + 0x18], ebx
mov eax, dword [edx + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ecx
cmp dword [ecx + eax], ebx
jne 0x408dae
mov ecx, dword [esp + 0x34]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x40c2bc
Capabilities:
Identify system language via api

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x40c30d
call fcn.0040cf60
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x114]
mov esi, dword [eax]
mov ebx, dword [ecx]
cmp esi, eax
je 0x40c30d
push dword [esp + 0x10]
call fcn.0041ac10
pop ecx
push eax
lea ecx, [esi + 8]
push dword [esp + 0x14]
push dword [ecx + 8]
push 0
call fcn.004043d0
test eax, eax
je 0x40c319
mov esi, dword [esi]
mov ebx, dword [ebx]
cmp esi, dword [edi + 0x120]
jne 0x40c2e1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
pop edi
pop esi
pop ebx
ret 4
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x40c325
mov ebx, 0x433518
push 0x10
push 0
push ebx
call fcn.0041be41
add esp, 0xc
jmp 0x40c313
Function at 0x40c990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov al, byte [0x453358]
push esi
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0
mov esi, 0x104
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edi, eax
test edi, edi
je 0x40c9f6
cmp edi, esi
ja 0x40c9f6
push dword [ebp + 8]
call fcn.0041ac10
cmp edi, eax
pop ecx
jae 0x40c9f6
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0041bed0
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov eax, ecx
pop esi
leave
ret
Function at 0x4126a6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov al, byte [0x453358]
push esi
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
test eax, eax
jne 0x4126db
mov eax, 0x433518
lea ecx, [ebp - 0x104]
push 0
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x104]
push eax
call fcn.0041ac10
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.00404270
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov eax, ecx
pop esi
leave
ret
Function at 0x413b45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov al, byte [0x453358]
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
leave
ret

Function at 0x413df3
Capabilities:
Check os version

Disassembly:
cmp dword [0x456060], 0
jne 0x413e87
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov edi, 0x456060
push edi
mov dword [0x456060], 0x9c
call esi
test eax, eax
jne 0x413e2b
push edi
mov dword [0x456060], 0x94
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x413e63
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x413e5c
push 0x4560fc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x456064], 5
pop edi
pop esi
jne 0x413e87
cmp dword [0x456068], 2
jne 0x413e87
push 1
pop eax
cmp byte [0x4560fa], al
jne 0x413e87
mov dword [0x456068], eax
ret
Function at 0x415a63
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push eax
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x415aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414044
pop ecx
push eax
push str.GetFileVersionInfoSize_failed_with__s_n
push 0x80
push 0x4437f0
call fcn.004018f0
jmp 0x415b00
push eax
call fcn.0042a29b
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x415aca
push str.Can_not_allocate_memory._n
push 0x4437f0
call fcn.0040ba1f
pop ecx
pop ecx
jmp 0x415b03
push eax
push dword [ebp - 8]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x415b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414044
pop ecx
push eax
push str.GetFileVersionInfo_failed_with__s_n
push 0x4437f0
call fcn.0040ba1f
push dword [ebp - 4]
call fcn.0042a2c4
add esp, 0x10
xor eax, eax
xor edx, edx
jmp 0x415b70
push ebx
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 4]
push eax
push 0x43b458
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x415b41
cmp dword [ebp - 0xc], esi
je 0x415b41
mov edx, dword [ebp - 4]
xor ecx, ecx
xor esi, esi
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
or ecx, edx
or eax, esi
mov esi, ecx
mov edi, eax
jmp 0x415b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414044
pop ecx
push eax
push str.VerQueryValue_failed_with__s_n
push 0x4437f0
call fcn.0040ba1f
add esp, 0xc
xor edi, edi
push ebx
call fcn.0042a2c4
pop ecx
mov edx, edi
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret
Function at 0x418153
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, eax
push esi
shr eax, 4
and ebx, 0xf
inc eax
push edi
push dword [esp + 0x18]
movzx eax, ax
push eax
push 6
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x4181b7
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4181b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4181b7
mov edi, eax
xor ecx, ecx
mov ax, word [edi]
test ax, ax
je 0x4181af
inc edi
inc edi
cmp ecx, ebx
movzx esi, ax
je 0x4181bd
lea edi, [edi + esi*2]
jmp 0x4181b1
inc edi
inc edi
inc ecx
cmp ecx, 0x10
jl 0x418199
xor eax, eax
pop edi
pop esi
pop ebx
ret
lea eax, [esi + esi + 2]
push eax
call fcn.0042a29b
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4181de
push esi
push edi
push ebx
call fcn.0041c8dc
add esp, 0xc
and word [ebx + esi*2], 0
mov eax, ebx
jmp 0x4181b9

Function at 0x42f462
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 0x42f490
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42f4ae
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042f3c8
jmp 0x42f4ae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42f4ae
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042f3c8
test edi, edi
mov eax, edi
jne 0x42f498
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x5bde3e5f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6ce8141b
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219