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

Disassembly:
int3
push ebp
mov ebp, esp
push ecx
push ebx
aam 0xcb
salc
xor dword [esi + 0xc], 0
je 0x407e54
lea ecx, [ebp - 0x78]
call fcn.00407bbf
push dword [ebp + 0xc]
std
ja 0x407e75
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov edi, dword [edx + 0xa]
test edi, edi
jne 0x407ed8
or al, byte [ebp - 0x74a18a01]
cmp al, 5
push dword [eax + 0x54]
mov esi, dword [edi + 4]
mov edi, dword [eax - 0x74ab8f01]
ja 0x407e87
mov ebx, 0x45750c75
inc ebp
mov edx, dword [ecx + 9]
mov eax, dword [edi]
test esi, edx
xor al, 0x11
stosw word es:[edi], ax
dec eax
sbb cx, word [edx]
jne 0x407e4e
add eax, 2
add edx, 0x12
pop esi
jne 0x407e91
add dword [ebp + 0x14], 0xffffffff
add byte [ebx + 0x38831445], ch
add dword [ebp + 0x13], esi
push dword [ebp + 0x28]
call fcn.0041fd9c
push dword [ebp + 0x14]
call 0x241fda4
and dword [eax + ebx - 0x75], 0xffffffc7
pop edi
push ss
jnp 0x407e53
cmc
pop ebp
ret 0x10
xor eax, 0x8bdaebf7
jbe 0x407ee7
mov esi, dword [esi + 0xc]
xor ebx, ebx
dec esi
js 0x407ed4
lea eax, [0x458d911c]
or byte [ebx], ch
rcl byte [ecx - 0x3ba7608], 0xff
xor al, 0x87
sub eax, eax
xchg ecx, eax
clc
mov dword [ebp - 4], eax
push dword [edi + eax*4]
call 0xfe407345
test eax, eax
js 0x407f26
outsb dx, byte [esi]
adc byte [ebx + 0x3b43fc1d], cl
fidivr word [esi + 0x5c]
jmp 0x407ed4
sub al, ch
add bh, byte [esi + 1]
Function at 0x414280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], ebx
push esi
push edi
test ebx, ebx
je 0x447052
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov eax, dword [esi]
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x20], ecx
cmp eax, dword [esi + 4]
jae 0x44f190
mov edi, edi
cmp dword [ebp + 0x18], 0
jne 0x447074
push 1
push 0
push 0
push 0
push 0
xor edx, edx
lea ecx, [ebp + 0x18]
call fcn.00414280
add esp, 0x14
jmp 0x414447
lea eax, [ebp + 0x18]
sub eax, dword [ebp - 8]
test eax, eax
jle 0x414447
neg eax
jmp 0x414447
Function at 0x41f52b
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x41f90d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c3283]
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.00423656
pop ecx
push eax
call fcn.00423484
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x454cd5
lea ecx, [ebp - 0x18]
call fcn.004057d7
mov ecx, edi
call int.00409337
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.00405734
push dword [ebp - 0x18]
push 0x490d18
push esi
call fcn.00423855
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x454cf5
lea ecx, [ebp - 0x18]
call fcn.00405832
mov edi, dword [ebp - 8]
push esi
call fcn.00423a1a
pop ecx
cmp ebx, 0xffffffff
je 0x41f9ab
push ebx
push esi
call fcn.00423656
pop ecx
push eax
call fcn.00423484
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
jmp 0x41f993
push esi
mov ecx, edi
call fcn.004674c1
push eax
push 1
call fcn.0046747e
push eax
call fcn.004237d3
add esp, 0x10
mov edi, eax
jmp 0x41f986
mov ecx, edi
call int.00409337
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41f97b
Function at 0x43c80f
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x43c7a2
xor eax, eax
inc eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x43c7b7
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x43c7cb
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x43c8a6
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x43c882
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x43c887
push 4
jmp 0x43c884
push 3
pop ebx
jmp 0x43c88a
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x43c8a9
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x404a2e
Function at 0x462465
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 1], bl
mov edi, edx
call fcn.004073d7
lea ecx, [ebp - 0x44]
call fcn.004073d7
lea ecx, [ebp - 0x14]
call fcn.004073d7
lea ecx, [ebp - 0x24]
call fcn.004073d7
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00404894
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.00404894
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.004636f1
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 3], al
call fcn.0046375b
mov esi, 0x4b5538
test al, al
je 0x4624d6
push esi
lea ecx, [ebp - 0x34]
call fcn.00407a1b
mov ecx, dword [ebp - 0x44]
call fcn.0046375b
test al, al
je 0x4624eb
push esi
lea ecx, [ebp - 0x44]
call fcn.00407a1b
lea ecx, [ebp - 0x54]
call fcn.004073d7
lea ecx, [ebp - 0x64]
call fcn.004073d7
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.004046df
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 2], al
cmp esi, 0xffffffff
je 0x462679
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0x462679
invalid

Function at 0x4626f1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 4]
push esi
push 0x48eacc
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.00407496
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4627be
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x462755
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46275a
jmp 0x4627c2
cmp eax, 3
jne 0x4627c6
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
push 0x48eacc
inc dword [eax]
call fcn.00407a3f
cmp eax, 0xffffffff
je 0x4627b3
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00407a9c
lea ecx, [esp + 0x18]
call fcn.004626f1
test al, al
je 0x4627b1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00405832
jmp 0x4627c8
test al, 0x10
je 0x4627c6
mov bl, 1
jmp 0x4627c8
xor bl, bl
lea ecx, [esp + 8]
call fcn.00405832
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462aa9
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c4338]
sub esp, 0x1c
cmp byte [eax + 0x25], 0
jne 0x462ac1
mov eax, 0x80004005
jmp 0x462b35
push ebx
push esi
xor esi, esi
mov eax, 0x80
push esi
push eax
push 3
push esi
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x462b24
push edi
xor eax, eax
mov dword [ebp - 0x10], 7
lea edi, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
jne 0x462b2b
mov eax, 0x80004005
jmp 0x462b33
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x463159
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x46314e
or eax, eax
jmp 0x463159
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46337b
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x46343e
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x46343e
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x4633db
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0x4633d2
cmp esi, ecx
jle 0x4633ee
push str.0.0.0.0
push edi
call fcn.00421d2c
pop ecx
pop ecx
jmp 0x463436
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.0041fdb0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004232b0
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.004641c6
mov esi, eax
push esi
push edi
call fcn.00421d2c
push esi
call fcn.0041fda4
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x46344b
push 0x48e91c
push edi
call fcn.00421d2c
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46368b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x4636e4
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46376e
test al, 0x10
je 0x46376e
mov al, 1
ret
xor al, al
ret

Function at 0x4637bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4c32b7], 0
mov ebx, edx
test edi, edi
je 0x46380f
mov byte [0x4c32b8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x463c9f
push ecx
push ecx
call fcn.00422dfe
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
test esi, esi
je 0x46383a
push 0xffffffffffffffff
push esi
mov byte [0x4c32b8], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4c32b7], 1
jne 0x463848
or eax, 0xffffffff
jmp 0x46384a
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b079
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45b0a0
call fcn.0045636b
mov dword [eax], esi
call fcn.00456358
push 0x16
pop esi
mov dword [eax], esi
call fcn.0045ed3b
mov eax, esi
jmp 0x45b0f5
test dword [ebp + 0xc], 0xfffffff9
jne 0x45b086
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45b0cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045637e
pop ecx
call fcn.00456358
mov eax, dword [eax]
jmp 0x45b0f5
test al, 0x10
jne 0x45b0f3
test al, 1
je 0x45b0f3
test byte [ebp + 0xc], 2
je 0x45b0f3
call fcn.0045636b
mov dword [eax], 5
call fcn.00456358
mov dword [eax], 0xd
jmp 0x45b0c4
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46b33d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4924c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045d142
and dword [ebp - 0x14], 0
cmp dword [0x49518c], 0
mov dword [ebp - 0x18], eax
jne 0x46b3f0
push 0x47aa78
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46b498
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46b498
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47aa5c
push ebx
mov dword [0x49518c], eax
call edi
push eax
call esi
push 0x47aa48
push ebx
mov dword [0x495190], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x495194], eax
call edi
push eax
call esi
mov dword [0x49519c], eax
test eax, eax
je 0x46b3f0
push 0x47aa14
push ebx
call edi
push eax
call esi
mov dword [0x495198], eax
mov eax, dword [0x495198]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46b449
cmp dword [0x49519c], ecx
je 0x46b449
push eax
call esi
push dword [0x49519c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46b449
test ebx, ebx
je 0x46b449
call edi
test eax, eax
je 0x46b440
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46b440
test byte [ebp - 8], 1
jne 0x46b449
or dword [ebp + 0x10], 0x200000
jmp 0x46b47c
mov eax, dword [0x495190]
cmp eax, dword [ebp - 0x18]
je 0x46b47c
push eax
call esi
test eax, eax
je 0x46b47c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46b47c
mov eax, dword [0x495194]
cmp eax, dword [ebp - 0x18]
je 0x46b47c
push eax
call esi
test eax, eax
je 0x46b47c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49518c]
call esi
test eax, eax
je 0x46b498
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46b49a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00454633
leave
ret
Function at 0x404c35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push edi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 0x3d7d2fe3
mov dword [esp + 0x74], 0x3d7cea93
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
call fcn.00404589
mov ecx, eax
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, esi
add eax, esi
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x54]
sub esi, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + edi]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
cmp eax, esi
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x44]
cmove esi, eax
mov esi, dword [esi + 0x78]
mov eax, edx
add eax, esi
mov dword [esp + 0x40], eax
mov eax, edx
add eax, dword [ecx + esi + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
xor eax, 0x3d7cea93
mov ecx, dword [ecx + esi + 0x18]
cmp ecx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
je 0x404d67
jmp 0x404d73
xor eax, eax
mov ecx, dword [esp + 0x24]
add ecx, 2
mov edx, dword [esp + 0x20]
add edx, 1
mov esi, dword [esp + 0x34]
cmp edx, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
jb 0x404d40
jmp 0x404d67
mov al, byte [esp + 0x17]
cmp al, 0
setne cl
mov edx, dword [esp + 0x10]
add edx, 1
cmp edx, 0x20
setb ah
mov ch, byte [esp + 0xf]
and ch, cl
and ch, ah
test ch, 1
mov dword [esp + 8], edx
jne 0x404d97
jmp 0x404d8a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
xor edx, edx
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
add esi, dword [edi + ecx*4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
jmp 0x404d97
mov eax, dword [esp + 0x28]
lea esp, [ebp - 0xc]
pop edi
pop ebx
pop esi
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
add ecx, dword [edx + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x404d40
mov al, byte [esp + 0xf]
test al, 1
jne 0x404dd3
jmp 0x404cf1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dl, byte [ecx + eax]
mov si, word [esp + 0x72]
sub si, 0xf9d9
mov word [esp + 0x72], si
mov edi, dword [esp + 0x5c]
mov dh, byte [edi + eax]
cmp dl, dh
sete bl
cmp dl, 0
mov dword [esp + 0x10], eax
mov byte [esp + 0xf], bl
mov byte [esp + 0x17], dh
je 0x404d8a
jmp 0x404d17
mov eax, dword [esp + 0x38]
not eax
mov ecx, dword [esp + 0x24]
movzx edx, word [ecx]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
add eax, 0x8d67acca
mov esi, dword [esp + 0x4c]
adc esi, 0xffffffff
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov bl, byte [esp + 0x7b]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
add eax, dword [esi + 0x1c]
xor bl, 0xff
mov byte [esp + 0x7b], bl
mov edi, dword [esp + 0x30]
add edi, dword [eax + edx*4]
mov dword [esp + 0x28], edi
jmp 0x404d67
Function at 0x404e22
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x70], 0x47d8cee7
mov edx, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
lea edx, section..qdata
imul esi, ecx, 0x60
mov edi, edx
add edi, esi
add edi, 0x28
imul esi, ecx, 0x60
add edx, esi
add ecx, 1
mov edx, dword [edx]
xor edx, dword [edi]
add edx, eax
cmp ecx, 0x12
mov eax, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
je 0x404eed
jmp 0x404e4c
call fcn.004051ee
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
call fcn.0040465f
xor ecx, ecx
mov edx, 0x1000
mov esi, 4
mov dword [esp], 0
mov edi, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], esi
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
jmp 0x404fa4
xor eax, eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
jmp 0x404f5c
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.004040f5
xor eax, eax
mov ecx, dword [esp + 0x28]
add ecx, 0x2e7c
mov edx, dword [esp + 0x48]
mov dword [edx + 0x1c], ecx
mov dword [edx + 4], 0x1a000
mov ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x28]
add edi, 0xca8
mov dword [esp + 0x6c], ecx
xor esi, 0x47d8eec7
mov dword [edx], edi
mov dword [edx + 0x18], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov ecx, 0x47d8cef5
mov dl, byte [esp + 0x77]
xor dl, 0xff
mov byte [esp + 0x77], dl
mov dl, byte [eax + 0x41a508]
sub ecx, dword [esp + 0x70]
mov dh, byte [eax + 0x41a4d9]
sub dh, dl
mov byte [esp + eax + 0x4c], dh
mov dl, byte [esp + 0x77]
add eax, 1
xor dl, 0xff
mov byte [esp + 0x77], dl
cmp eax, ecx
mov dword [esp + 0x1c], eax
je 0x404e87
jmp 0x404f5c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov edi, 0x15fff245
mov dword [esp + 0x18], eax
mov eax, edx
mul edi
imul esi, esi, 0x15fff245
add edx, esi
mov esi, dword [esp + 0x18]
shl esi, 5
mov edi, dword [esi + esi*2 + 0x41b028]
mov ebx, dword [esi + esi*2 + 0x41b058]
mov esi, dword [esi + esi*2 + section..qdata]
xor esi, edi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
call fcn.0040516a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, ecx
mov edx, dword [esp + 0x18]
add edx, 1
cmp edx, 0x12
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
je 0x404efd
jmp 0x404fa4