joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474060
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4740a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x474520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d51c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004740d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00474150
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00474150
lea ecx, [esi + 0xc]
call fcn.004c22c3
lea ecx, [esi + 0x10]
call fcn.004c22c3
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004756e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004756e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004756e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c2338
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c2338
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47b2a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d5528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0047b6a0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x73008c
call fcn.0049fb18
mov ecx, dword [0x6b0154]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004789f0
mov esi, 0x6b01ac
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x47b347
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47b33e
cmp al, 0xff
je 0x47b33e
dec al
mov byte [ecx], al
jmp 0x47b347
push ecx
call fcn.004c20a2
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004bd2e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x47b38d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47b384
cmp al, 0xff
je 0x47b384
dec al
mov byte [ecx], al
jmp 0x47b38d
push ecx
call fcn.004c20a2
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0049fb9f
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x481e50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7301a0]
xor edx, edx
cmp eax, edx
jne 0x481e76
xor eax, eax
mov byte [eax + 0x7300a0], al
inc eax
cmp eax, 0x100
jl 0x481e5e
mov dword [0x7301a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7300a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x481f07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x481eda
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x481ea8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x481f10
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 0x481f63
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 0x481f4a
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 0x4888e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d57ee
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.00489200
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6b03dc
call fcn.004c2079
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x488973
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c2079
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48896c
push 0
mov ecx, eax
call fcn.0047fa80
mov dword [esi + 0xc], eax
jmp 0x488975
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x488975
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 0x4b7940
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d6dd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004ac8cd
mov eax, dword [0x6b4720]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004ac7ff
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004b8410
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4b79e7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b79de
cmp al, 0xff
je 0x4b79de
dec al
mov byte [ecx], al
jmp 0x4b79e7
push ecx
call fcn.004c20a2
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4b7a18
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b7a0f
cmp al, 0xff
je 0x4b7a0f
dec al
mov byte [ecx], al
jmp 0x4b7a18
push ecx
call fcn.004c20a2
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4c4767
Capabilities:
Get graphical window text

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

Function at 0x4c5f5e
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 0x4c5fa0
call fcn.004cc687
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c5fa0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c5f97
xor eax, eax
jmp 0x4c5fa8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c5fae
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ccbb7
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 0x4ccbe5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ccc03
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ccb1d
jmp 0x4ccc03
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ccc03
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ccb1d
test edi, edi
mov eax, edi
jne 0x4ccbed
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10512
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 8]
push ebx
push esi
cdq
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], eax
push 0x104de
lea eax, [ebp - 0x2c]
xor ebx, ebx
xor ecx, ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
push eax
mov esi, 0xf001f
push esi
push edi
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [edi], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenSection]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jl 0x10644
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jl 0x10644
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
xor esi, esi
add edx, eax
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
push edx
push ecx
push eax
adc esi, ecx
push ebx
mov dword [ebp - 0x18], esi
mov esi, dword [sym.imp.HAL.dll_HalTranslateBusAddress]
push 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
call esi
mov byte [ebp + 0xb], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 4], ebx
push dword [ebp - 0x1c]
push ebx
push 1
call esi
cmp byte [ebp + 0xb], bl
je 0x1064c
cmp al, bl
je 0x1064c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
sub eax, ecx
sbb esi, edx
cmp eax, ebx
mov dword [ebp - 0x30], esi
je 0x1064c
push 0x40
push ebx
push 1
mov dword [ebp - 0x24], ecx
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 0x20], edx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jl 0x10644
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1064c
push dword [edi]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x11005
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10f84]
test eax, eax
mov ecx, 0xbb40
je 0x1101c
cmp eax, ecx
jne 0x1103f
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x10f84
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x10f84], eax
jne 0x1103f
mov eax, ecx
mov dword [0x10f84], eax
not eax
mov dword [section..data], eax
pop ebp
jmp 0x10d04
Function at 0x403c30
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebp
push esi
xor ebp, ebp
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
push ecx
mov dword [eax], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call dword [0x4d53c4]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
push ecx
push edx
mov dword [esp + 0x1c], eax
call dword [0x4d53a4]
mov eax, dword [esi + 0x17c]
xor edi, edi
cmp eax, ebp
je 0x403cf8
cmp dword [eax + 0x18], ebp
je 0x403cf8
cmp dword [eax + 0x1c], ebp
je 0x403cf8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
add eax, 4
push eax
call dword [0x4d53f8]
test eax, eax
je 0x403cd1
push 1
call dword [0x4d53ec]
xor ecx, ecx
test ax, ax
setl cl
xor edx, edx
lea edi, [ebp + 1]
add ecx, 2
mov eax, ecx
mov ecx, dword [esi + 0x17c]
cmp dword [ecx + 0x3c], eax
mov dword [ecx + 0x3c], eax
setne dl
mov eax, edx
jmp 0x403ce9
mov eax, dword [esi + 0x17c]
xor ecx, ecx
cmp dword [eax + 0x3c], 1
mov dword [eax + 0x3c], 1
setne cl
mov eax, ecx
cmp eax, ebp
je 0x403cf8
mov esi, dword [esi + 0x17c]
call fcn.00423820
neg edi
sbb edi, edi
and edi, 0x89
add edi, 0x7f00
push edi
push ebp
call dword [0x4d53f0]
push eax
call dword [0x4d53fc]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x18
ret
Function at 0x403df0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x50
push ebx
push esi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [0x4d53c4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [esp + 0x18], edx
call dword [0x4d53a4]
mov eax, dword [edi + 0x17c]
test eax, eax
je 0x403f5e
cmp dword [eax + 0x18], 0
je 0x403f5e
cmp dword [eax + 0x1c], 0
je 0x403f5e
cmp dword [eax + 0x3c], 3
jne 0x403f5e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push ecx
add eax, 4
push eax
call dword [0x4d53f8]
test eax, eax
je 0x403f5e
mov eax, dword [edi + 0x17c]
xor ecx, ecx
mov edx, 2
cmp dword [eax + 0x3c], edx
mov dword [eax + 0x3c], edx
setne cl
test ecx, ecx
je 0x403eac
mov esi, dword [edi + 0x17c]
call fcn.00423820
mov eax, dword [edi + 0x17c]
lea esi, [esp + 8]
call fcn.004033d0
push eax
mov ecx, 0x4e3158
call fcn.00406690
add esp, 4
mov ecx, esi
mov bl, al
call fcn.004029a0
test bl, bl
je 0x403f43
lea edx, [esp + 8]
push edx
mov ecx, str.http:__py.qq.com
call fcn.004062e0
push 0x38
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004b0720
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x2c], str.open
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], 0x440
mov dword [esp + 0x3c], 1
call dword [0x4d5348]
test eax, eax
je 0x403f38
mov eax, dword [esp + 0x54]
push eax
call dword [0x4d52d8]
lea ecx, [esp + 8]
call fcn.004029a0
jmp 0x403f4a
mov ebx, edi
call fcn.004059c0
push 0x7f89
push 0
call dword [0x4d53f0]
push eax
call dword [0x4d53fc]
mov ecx, dword [esp + 0x5c]
pop esi
mov dword [ecx], 0
mov eax, 1
pop ebx
add esp, 0x50
ret 4
Function at 0x403f80
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d28c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov esi, ecx
cmp eax, 0x4f
jne 0x403fb9
call fcn.00404c10
jmp 0x4040c4
cmp eax, 0x4b
je 0x4040c4
cmp eax, 0x53
jne 0x4040ba
mov ecx, dword [esi + 0x18c]
lea ebx, [esi + 0x158]
call fcn.0043af30
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x403ff2
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebx + 4], 0
cmp dword [esp + 0x28], 0
jne 0x40409c
lea eax, [esp + 0x24]
push eax
call fcn.004291c0
add esp, 4
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.00427d90
lea edi, [esi + 0x188]
lea ecx, [esp + 0x28]
push edi
push ecx
lea ebx, [esp + 0x2c]
call fcn.004064f0
mov eax, dword [eax]
add esp, 8
push eax
call dword [0x4d5364]
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.004029a0
test ebx, ebx
je 0x404060
mov edx, dword [esi + 4]
push 0
push 0
push 0x83ea
push edx
call dword [0x4d5404]
jmp 0x404089
lea eax, [esp + 0x28]
push edi
push eax
lea ebx, [esp + 0x2c]
call fcn.004064f0
mov eax, dword [eax]
add esp, 8
push eax
call dword [0x4d52e4]
lea ecx, [esp + 0x28]
call fcn.004029a0
call fcn.00405f70
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004029a0
jmp 0x4040a1
call fcn.00405f70
call fcn.00404c10
push esi
call fcn.004049f0
mov ecx, dword [esi + 4]
push 1
push 0
push ecx
call dword [0x4d53e8]
mov edx, dword [esp + 0x2c]
mov dword [edx], 1
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4044c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d2698
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
mov edi, ecx
cmp eax, 0x14
jne 0x404536
push 0
call fcn.004a93af
mov edx, dword [edi + 0x19c]
mov ecx, eax
add esp, 4
sub ecx, edx
cmp eax, edx
ja 0x40450c
sub ecx, 1
cmp ecx, 0x2a300
jbe 0x4045de
mov dword [edi + 0x19c], eax
mov eax, dword [edi + 4]
push 0x14
push eax
call dword [0x4d53f4]
mov ebx, edi
call fcn.004059c0
jmp 0x4045de
cmp eax, 0x3e8
jne 0x4045de
lea ecx, [esp + 0x14]
push ecx
call fcn.004291c0
add esp, 4
push eax
lea edx, [esp + 0x2c]
push edx
mov ebx, str.handinput.dat
mov dword [esp + 0x28], 0
call fcn.004065b0
mov eax, dword [eax]
add esp, 8
push eax
call dword [0x4d5364]
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4045de
mov ecx, dword [edi + 4]
mov esi, dword [0x4d53f4]
push 0x14
push ecx
call esi
mov edx, dword [edi + 4]
push 0x3e8
push edx
call esi
call fcn.00405fc0
mov eax, dword [esp + 0x2c]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8

Function at 0x4049a5
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
je 0x4049cd
mov eax, dword [esi - 0x1c]
push eax
call dword [0x4d5394]
test eax, eax
jne 0x4049e7
mov ecx, dword [esi - 0x1c]
push 5
push ecx
call dword [0x4d53dc]
mov eax, 1
pop esi
ret 4
mov edx, dword [esi - 0x1c]
push edx
call dword [0x4d5394]
test eax, eax
je 0x4049e7
mov eax, dword [esi - 0x1c]
push 0
push eax
call dword [0x4d53dc]
mov eax, 1
pop esi
ret 4
Function at 0x405800
Capabilities:
Hash data with md5

Disassembly:
mov eax, 0x2178
call fcn.004c60d0
mov eax, dword [0x50397c]
xor eax, esp
mov dword [esp + 0x2174], eax
mov eax, dword [esp + 0x217c]
push ebx
push ebp
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
mov dword [esp + 0x28], ecx
xor ebp, ebp
call dword [0x4d52cc]
cmp eax, 0xffffffff
jne 0x405855
call fcn.00402e30
cmp eax, ebx
jge 0x405857
xor eax, eax
jmp 0x40599e
mov ebp, eax
push esi
xor eax, eax
push 0x5c
lea edx, [esp + 0x18]
push ebx
push edx
mov byte [esp + 0x7c], bl
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov word [esp + 0x89], ax
mov byte [esp + 0x8b], al
call fcn.004b0720
mov esi, dword [0x4d52c8]
add esp, 0xc
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x6c], ebx
push ebx
lea eax, [esp + 0x10]
push eax
push 0x2000
lea ecx, [esp + 0x18c]
push ecx
push ebp
mov dword [esp + 0x20], ebx
call esi
test eax, eax
jne 0x4058e4
call fcn.00402e30
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x405903
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x188]
call fcn.004241f0
add esp, 8
jmp 0x4058c1
cmp ebp, ebx
je 0x405910
push ebp
call dword [0x4d52d8]
xor ebp, ebp
lea eax, [esp + 0x70]
push edi
push eax
lea esi, [esp + 0x1c]
call fcn.004244d0
push 0xfe
lea ecx, [esp + 0x8e]
push ebx
push ecx
mov word [esp + 0x94], bx
call fcn.004b0720
add esp, 0x10
lea edi, [esp + 0x84]
xor esi, esi
jmp 0x405950
movzx edx, byte [esp + esi + 0x74]
push edx
push str._.2x
push 3
push edi
call fcn.004aa12d
add esi, 1
add esp, 0x10
add edi, 4
cmp esi, 0x10
jb 0x405950
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.004aa524
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
cmp ebp, ebx
pop edi
je 0x40599b
push ebp
call dword [0x4d52d8]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x217c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004a91d5
add esp, 0x2178
ret 4