joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55665a5
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
and dword [ebp - 0x10], esi
and dword [eax], esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test edi, edi
jne 0x556670d
push ebx
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x55666f9
cmp dword [ebx + 4], 2
jne 0x55665ed
push 0x10
jmp 0x55665f9
cmp dword [ebx + 4], 0x17
jne 0x55666a1
push 0x1c
cmp dword [ebx + 0x18], 0
pop eax
mov dword [ebp - 8], eax
je 0x55666a1
cmp dword [ebx + 0x10], 0
jbe 0x55666a1
cmp dword [ebx + 0x10], eax
jb 0x55666a1
push 0x20
call dword [0x53f4068]
mov esi, eax
pop ecx
test esi, esi
je 0x55666d1
mov ecx, dword [ebx]
mov dword [esi], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
xor ecx, ecx
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
call dword [0x53f4068]
mov dword [esi + 0x18], eax
pop ecx
test eax, eax
je 0x55666c5
push dword [ebp - 8]
push dword [ebx + 0x18]
push eax
call fcn.0557da80
add esp, 0xc
cmp dword [ebx + 0x14], 0
je 0x5566689
push dword [ebx + 0x14]
call dword [0x53f4074]
mov dword [esi + 0x14], eax
pop ecx
test eax, eax
je 0x55666ae
mov eax, dword [ebp - 4]
test eax, eax
cmove eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x556669e
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x55665e3
jmp 0x55666d4
push 8
pop edi
push dword [esi + 0x18]
call dword [0x53f406c]
push esi
call dword [0x53f406c]
pop ecx
pop ecx
jmp 0x55666d4
push 8
pop edi
push esi
call dword [0x53f406c]
jmp 0x55666c2
push 8
pop edi
cmp dword [ebp - 0xc], 0
je 0x55666e3
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, dword [ebp - 4]
test edi, edi
je 0x55666f5
push esi
call fcn.05566570
pop ecx
xor esi, esi
jmp 0x5566705
test esi, esi
jne 0x5566705
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x5566a33
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.0558e026
add esp, 0x18
test eax, eax
je 0x5566a53
cmp eax, 0xffffffff
jne 0x5566a55
xor eax, eax
pop ebp
ret
Function at 0x5567060
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
push 4
pop edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.0557d7e0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5567119
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x55670fc
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x55670fc
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x55670fc
cmp esi, dword [ebp - 0xc]
jb 0x55670fc
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x556710a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x5567119
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5575c34
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
not ebx
push edi
cmp esi, 8
jbe 0x5575cf4
jmp 0x5575c64
movzx eax, byte [edx]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x5537410]
inc edx
dec esi
test dl, 7
jne 0x5575c50
mov edi, esi
and edi, 0xfffffff8
add edi, edx
and esi, 7
jmp 0x5575cf0
xor ebx, dword [edx]
add edx, 4
mov dword [ebp + 0x10], edx
add dword [ebp + 0x10], 4
mov edx, dword [edx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5537810]
xor ecx, dword [eax*4 + 0x5537c10]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x5538810]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5538c10]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5537410]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5538410]
movzx eax, dl
mov edx, dword [ebp + 0x10]
xor ecx, dword [eax*4 + 0x5538010]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5539010]
mov ebx, ecx
cmp edx, edi
jb 0x5575c75
test esi, esi
je 0x5575d10
movzx eax, byte [edx]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x5537410]
inc edx
sub esi, 1
jne 0x5575cf8
pop edi
not ebx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x5575d19
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
not ebx
push edi
mov edi, dword [ebp + 0xc]
not esi
cmp edi, 4
jbe 0x5575e03
mov dword [ebp + 0x14], edx
test dl, 3
je 0x5575d69
movzx eax, byte [edx]
movzx ecx, bl
shrd ebx, esi, 8
xor ecx, eax
shr esi, 8
xor ebx, dword [ecx*8 + 0x5539410]
xor esi, dword [ecx*8 + 0x5539414]
inc edx
dec edi
test dl, 3
jne 0x5575d42
mov dword [ebp + 0x14], edx
and dword [ebp - 8], 0
mov ecx, edi
and dword [ebp - 4], 0
and ecx, 0xfffffffc
and edi, 3
mov dword [ebp + 0xc], edi
lea eax, [ecx + edx]
shr ecx, 2
cmp edx, eax
cmova ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x5575e03
mov edi, ecx
mov edx, dword [edx]
xor edx, ebx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*8 + 0x5539c10]
mov ecx, dword [ecx*8 + 0x5539c14]
xor ebx, dword [eax*8 + 0x553a410]
xor ecx, dword [eax*8 + 0x553a414]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*8 + 0x5539410]
xor ecx, dword [eax*8 + 0x5539414]
movzx eax, dl
mov edx, dword [ebp + 0x14]
add edx, 4
mov dword [ebp + 0x14], edx
xor ebx, dword [eax*8 + 0x553ac10]
xor ecx, dword [eax*8 + 0x553ac14]
xor ebx, esi
mov eax, dword [ebp - 4]
xor ecx, 0
inc eax
mov esi, ecx
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x5575d91
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5575e2a
movzx eax, byte [edx]
movzx ecx, bl
shrd ebx, esi, 8
xor ecx, eax
shr esi, 8
xor ebx, dword [ecx*8 + 0x5539410]
xor esi, dword [ecx*8 + 0x5539414]
inc edx
sub edi, 1
jne 0x5575e07
not esi
not ebx
pop edi
mov edx, esi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x5593e09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.05593c7f

Function at 0x559d510
Capabilities:
Allocate or change rwx memory
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x559d4f8
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov edi, 0x82fa98
push edi
call fcn.0557ccaa
cmp byte [0x53f4cf4], 0
mov ebx, eax
mov eax, 0x5542044
mov dword [esp], 0x5542034
mov ecx, 0x5542038
cmove ecx, eax
push ecx
call fcn.05586e82
mov esi, eax
push esi
push edi
xor edi, edi
inc edi
push edi
push ebx
call fcn.05587081
push esi
call fcn.05586d5b
mov ecx, dword [0x552b98c]
add esp, 0x1c
mov eax, dword fs:[0x2c]
push 0
mov eax, dword [eax + ecx*4]
mov dword [eax + 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0xf8
mov esi, dword [edi + 0x3c]
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [0x53f4cf4], 0
mov eax, 0x56da57
mov ecx, 0x5d3766
cmovne eax, ecx
mov dword [esi + 0x28], eax
cmp byte [0x53f4cf4], 0
mov eax, dword [esi + 0xc0]
mov eax, dword [eax + edi + 8]
mov eax, dword [eax]
je 0x559d5d2
mov dword [0x46d9428], eax
jmp 0x559d5d7
mov dword [0x3956508], eax
push section..w2b
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
call fcn.05548262
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x559d5ee
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes
Query environment variable
Read .ini file
Set current directory
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.05544225
xor ebx, ebx
test al, al
jne 0x559d6d7
push 0x200
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x404]
push 0x5c
push eax
call fcn.0557e574
mov edi, eax
mov dword [ebp - 0x40c], ebx
xor eax, eax
mov dword [ebp - 0x408], 7
pop ecx
pop ecx
mov word [edi], ax
lea ecx, [ebp - 0x41c]
mov word [ebp - 0x41c], ax
add edi, 2
lea eax, [ebp - 0x404]
push eax
call fcn.055459a1
push 0x5541eb0
lea ecx, [ebp - 0x41c]
call fcn.0554591c
push eax
lea ecx, [ebp - 0x434]
call fcn.0554556b
cmp dword [ebp - 0x420], 8
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x434]
mov esi, eax
call fcn.055458c4
lea ecx, [ebp - 0x41c]
call fcn.055458c4
cmp esi, 0xffffffff
je 0x559d6de
push 0x10
push 0x5541ed0
push 0x5541ee0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
push 0x5541f90
call fcn.05547b17
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
inc ecx
mov edi, 0x5541fa4
cmp eax, 0xffffffff
jne 0x559d724
call esi
push edi
push eax
call fcn.0557f9ce
pop ecx
pop ecx
test eax, eax
je 0x559d726
xor ecx, ecx
inc ecx
mov bl, cl
call esi
push edi
push eax
call fcn.0557f9ce
pop ecx
pop ecx
movzx ecx, byte [0x53f4cf4]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov byte [0x53f4cf4], cl
test bl, bl
jne 0x559d757
call fcn.05544020
test al, al
je 0x559d810
call fcn.05545608
push 0x10000
mov ebx, 0x411000
push ebx
push 0x5541fb8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x404]
push eax
push 0x5541fc4
call fcn.05547b17
pop ecx
pop ecx
push eax
push 0x8000
mov edi, section..w2b
push edi
push 0x5541fdc
push 0x5541fe0
push 0x5541ff4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
push edi
lea eax, [ebp - 0x404]
mov edi, 0x421000
push eax
push eax
push 0x5542000
push 0x10000
push edi
call fcn.05547bc6
add esp, 0x1c
push edi
push 0x5541fb8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call esi
push 0x554202c
push eax
call fcn.0557f9ce
pop ecx
pop ecx
movzx ecx, byte [0x53f4cf4]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov byte [0x53f4cf4], cl
call fcn.0559d510
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0557c24c
leave
ret 0x10
xor ebx, ebx
jmp 0x559d6d7
Function at 0x405d9f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x457288
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x457288], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405dda
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405f90
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fad
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405fb0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406034
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060ad
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406096
cmp dword [ebp + 0x14], 1
je 0x40609b
cmp dword [ebp + 0x14], 2
je 0x40609b
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406248
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406271
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406265
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40631c
cmp dword [0x461530], ebx
je 0x40631c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a560], bx
je 0x4062e8
cmp dword [0x40b058], 0xffffffff
jne 0x4062f1
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb0
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40631a
cmp dword [ebp + 8], 0xffffffff
jne 0x4062dd
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40631a
push 0x4096a8
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4068df
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4572d0
push esi
call fcn.0040616a
push esi
call fcn.00405eb9
mov edi, eax
test edi, edi
jne 0x406900
xor eax, eax
jmp 0x40695d
push edi
call fcn.00406199
test byte [0x472e28], 0x80
je 0x40691c
movzx eax, word [edi]
test ax, ax
je 0x4068fc
cmp eax, 0x5c
je 0x4068fc
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40693e
push esi
call fcn.00406436
test eax, eax
je 0x406938
test byte [eax], 0x10
je 0x406962
push esi
call fcn.004068b2
push esi
call ebx
cmp eax, edi
jg 0x406929
push esi
call fcn.00406883
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40695c
Function at 0x62c680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x631080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x6310a1
mov eax, 0xff
call fcn.0062c680
xor byte [esi], al
inc esi
dec ebx
jne 0x631091
pop esi
pop ebx
ret
Function at 0x7232c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22a000]
push edi
jmp 0x7232da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7232e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7232d0
mov eax, 1
add ebx, ebx
jne 0x7232f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x723304
jne 0x723323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x723323
dec eax
add ebx, ebx
jne 0x723310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7232e8
add ebx, ebx
jne 0x72331f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x723375
xor ecx, ecx
sub eax, 3
jb 0x72333b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7233aa
sar eax, 1
mov ebp, eax
jmp 0x723346
add ebx, ebx
jne 0x723346
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x723314
inc ecx
add ebx, ebx
jne 0x723354
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x723314
add ebx, ebx
jne 0x723361
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x723356
jne 0x723372
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x723356
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x723394
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x723386
jmp 0x7232d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x723394
add edi, ecx
jmp 0x7232d6
pop esi
mov edi, esi
mov ecx, 0x1cea
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7233b2
cmp byte [edi], 0x12
jne 0x7233b2
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 al, bl
loop 0x7233b7
lea edi, [esi + 0x31d000]
mov eax, dword [edi]
or eax, eax
je 0x72342f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x349cf0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x349ea4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7233e4
mov ecx, edi
jns 0x723413
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x349eac]
or eax, eax
je 0x723429
mov dword [ebx], eax
add ebx, 4
jmp 0x723401
call dword [esi + 0x349ea8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x723460
cmp al, 0xef
ja 0x723453
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x723435
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x723442
mov ebp, dword [esi + 0x349eb0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x723494
sub esp, 0xffffff80
jmp 0x41abe9
Function at 0x914398
Capabilities:
Encode data using xor

Disassembly:
jmp 0x9143a2
pushal
call 0x9143a8
pop ebp
sub ebp, 0x10
sub ebp, 0x514398
jmp 0x9143be
mov eax, 0x514398
add eax, ebp
add eax, 0x4c
mov ecx, 0x609
add byte [ecx + 0x609], bh
mov edx, 0x11d75cdc
xor byte [eax], dl
inc eax
dec ecx
jne 0x9143d5
jmp 0x9143e8
push edi
adc dword [edi + 0x55], edx
loopne 0x9143ca
invalid
Function at 0x401df0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4070c4
call sym._EnterCriticalSection_4
mov ebx, dword [0x4070bc]
sub esp, 4
test ebx, ebx
je 0x401e3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e34
test esi, esi
je 0x401e34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e10
mov dword [esp], 0x4070c4
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402020
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402148
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4020ae
cmp eax, 4
jne 0x4020d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4020be
cmp edx, 4
je 0x4020be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402020