joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457760
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a8e88
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x457799
inc eax
mov dword [esi + 0x10], eax
jmp 0x4578ac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4577ad
mov eax, 0xffffffc7
jmp 0x4578ae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4577be
cmp dword [esi + 8], eax
jne 0x4577ad
cmp dword [esi + 8], eax
jne 0x4577d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4577d7
mov eax, 0xffffffc7
jmp 0x4578ae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4577eb
push eax
mov ecx, ebx
call fcn.00456f90
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0042a870
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x45781c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0042a890
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00456700
test eax, eax
mov dword [esp + 0x38], eax
je 0x45784f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c5878
call fcn.0042aa70
mov eax, dword [esp + 0x38]
jmp 0x4578ae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004575c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x457893
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004575e0
mov esi, eax
test esi, esi
jne 0x4578c3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004575c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x457865
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c5878
call fcn.0042aa70
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c5878
call fcn.0042aa70
mov eax, esi
jmp 0x4578ae

Function at 0x45c280
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x45c2e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x45c2e0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x45c2e0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x45c2e0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x45c320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x468050
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a9778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a22fe
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004679b0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a222c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049eaed
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049eaed
push 1
push 0
push 0
mov ecx, esi
call fcn.0049ea95
push 1
push 0
push 1
mov ecx, esi
call fcn.0049ea95
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a2370
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4681d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a9798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a22fe
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004679b0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a222c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x468294
cmp dword [esp + 0x40], 1
jne 0x468292
cmp ecx, eax
jge 0x468294
mov eax, ecx
cmp eax, 0xc8
jge 0x4682a0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00468050
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a2370
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x468a90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a9843
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049cf0e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a25a6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a3ac2
test eax, eax
je 0x468bac
mov ecx, dword [esp + 0x3c]
call fcn.004a25d3
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x468b70
push edi
mov ecx, esi
call fcn.0049fc34
mov ecx, esi
call fcn.00468d50
cmp dword [esp + 0x38], 1
jne 0x468ba5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049fd6f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x46ada0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46add3
push esi
call fcn.00479160
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46adcc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46ae59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46ae42
mov eax, dword [esi + 8]
test eax, eax
je 0x46adf7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46ae3e
cmp eax, 2
je 0x46ae42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46adea
cmp eax, 3
je 0x46ae1d
cmp eax, 1
jne 0x46adea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46adea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46adea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046ae80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46ae68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046ae80
add esp, 4
pop esi
ret

Function at 0x46b6f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x46b711
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x46b711
mov eax, dword [eax + 0x44]
test eax, eax
je 0x46b711
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x49dd03
Capabilities:
Get graphical window text

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

Function at 0x49f3f1
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 0x49f433
call fcn.004a4ead
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49f433
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49f42a
xor eax, eax
jmp 0x49f43b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049f441
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a53dd
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 0x4a540b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a5429
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a5343
jmp 0x4a5429
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a5429
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a5343
test edi, edi
mov eax, edi
jne 0x4a5413
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40a340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp - 0x7c]
push esi
mov edx, dword [esi + 0x76]
test dword [ebp + esi*2 + 0xcc1df11], edx
push ecx
inc dword [esp + ebp - 0x40]
inc eax
add byte [ebx], dh
push eax
pop esi
Function at 0x402348
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
mov eax, dword [0x4c1160]
mov eax, dword [eax + 4]
mov dword [eax + 0x4c1160], 0x4b1858
dec ebx
add byte [ecx + 0x4c1160], ah
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x4b4]
mov dword [ecx + 0x4c115c], eax
mov ecx, 0x4c11e8
call fcn.0040272e
mov ecx, 0x4c1218
call fcn.0040d7f7
mov ecx, 0x4c1228
call fcn.0040d7f7
mov ecx, 0x4c1238
call fcn.0040d7f7
mov ecx, 0x4c12b0
mov dword [0x4c1280], ebx
mov dword [0x4c1284], ebx
mov dword [0x4c1288], ebx
mov dword [0x4c128c], ebx
mov dword [0x4c1290], ebx
mov dword [0x4c1294], ebx
mov dword [0x4c1298], ebx
mov dword [0x4c129c], ebx
mov dword [0x4c12a0], ebx
mov dword [0x4c12a4], ebx
call fcn.0040d7f7
xor edi, edi
inc edi
mov ecx, 0x4c1348
mov dword [0x4c12c0], ebx
mov dword [0x4c12c4], ebx
mov word [0x4c12c8], bx
mov dword [0x4c12cc], ebx
mov dword [0x4c12d0], ebx
mov word [0x4c12d4], bx
mov dword [0x4c12d8], 0x4b26c4
mov dword [0x4c12dc], ebx
mov dword [0x4c12e0], ebx
mov dword [0x4c12e4], ebx
mov dword [0x4c12e8], ebx
mov dword [0x4c12ec], ebx
mov dword [0x4c12f0], ebx
mov dword [0x4c12f4], 0x4b26c4
mov dword [0x4c12f8], ebx
mov dword [0x4c12fc], ebx
mov dword [0x4c1300], ebx
mov dword [0x4c1304], 0x4b26c4
mov dword [0x4c1308], ebx
mov dword [0x4c130c], ebx
mov dword [0x4c1310], ebx
mov dword [0x4c1314], 0x4b26c4
mov dword [0x4c1318], ebx
mov dword [0x4c131c], ebx
mov dword [0x4c1320], ebx
mov dword [0x4c1324], 0x49ddb8
mov dword [0x4c1328], ebx
mov dword [0x4c132c], ebx
mov dword [0x4c1330], ebx
mov dword [0x4c1338], ebx
mov dword [0x4c1340], ebx
mov dword [0x4c1344], edi
call fcn.0040d7f7
mov ecx, 0x4c1358
call fcn.0040263f
mov ecx, 0x4c147c
mov dword [0x4c1460], 0x49ddb8
mov dword [0x4c1464], ebx
mov dword [0x4c1468], ebx
mov dword [0x4c146c], ebx
call fcn.004022a4
mov ecx, 0x4c15b8
call fcn.0040d7f7
push ebx
mov ecx, 0x4c15fc
mov dword [0x4c15d8], ebx
mov dword [0x4c15dc], ebx
mov dword [0x4c15e0], ebx
mov dword [0x4c15e8], ebx
mov dword [0x4c15ec], ebx
mov dword [0x4c15f0], ebx
call fcn.00414800
lea ecx, [ebp - 0x3c]
call fcn.004027c7
push eax
mov eax, dword [0x4c1160]
mov ecx, dword [eax + 4]
add ecx, 0x4c1164
call fcn.00402745
lea ecx, [ebp - 0x1c]
call fcn.00412c20
lea ecx, [ebp - 0x3c]
call fcn.00412c20
push 0xfffffffffffffff6
mov byte [0x4c1260], bl
mov dword [0x4c125c], ebx
mov dword [0x4c124c], ebx
mov dword [0x4c1250], ebx
mov dword [0x4c1248], ebx
mov dword [0x4c1258], ebx
mov dword [0x4c1254], ebx
mov dword [0x4c12ac], ebx
mov word [0x4c15e4], bx
mov byte [0x4c160c], bl
mov byte [0x4c12a9], bl
mov dword [0x4c15d4], ebx
call dword [0x48d254]
mov esi, eax
test esi, esi
jne 0x47501d
mov dword [0x4c15f4], ebx
push 0xa
pop eax
mov ecx, 0xfa
push ebx
mov dword [0x4c1264], edi
mov dword [0x4c1268], edi
mov dword [0x4c126c], edi
mov word [0x4c1261], bx
mov byte [0x4c1263], bl
mov byte [0x4c127c], bl
mov dword [0x4c15f8], 0x64
Function at 0x408922
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, word [ecx]

Function at 0x40892b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
movzx eax, byte [eax + 0x49e560]
push esi
push edi
mov edi, edx
xor edx, edx
lea ecx, [ecx + eax*2]
inc edx
mov dword [ebp - 4], edi
call fcn.00408b14
mov esi, eax
cmp esi, edi
jae case.0x408a2d.119
push 0x77
pop ebx
movzx edi, word [esi]
push 0x10
xor edx, edx
pop ecx
Function at 0x442589
Capabilities:
Encode data using xor

Disassembly:
add byte [ebx], dh
rcl byte [ebx - 0x75], 0x5d
or al, 0x56
mov ecx, dword [ebx]
push edi
mov edi, dword [ebp + 8]
lea eax, [ecx + 4]
mov esi, dword [ecx + edi]
mov dword [ebx], eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
mov dword [ebp + 8], esi
neg ecx
or ecx, eax
push ecx
call fcn.0041f522
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
push esi
push ecx
mov edi, eax
push edi
call fcn.0041eeb8
mov ecx, dword [ebp + 8]
add dword [ebx], esi
xor eax, eax
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x4425e4
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x4425db
mov eax, edi
pop edi
pop esi
invalid

Function at 0x44bdc2
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c4c045c]
test eax, eax
je 0x44bdea
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x4c4c0454]
call fcn.00422ae6
add esp, 0x10
and dword [esi + 0x4c045c], 0
pop esi
ret
Function at 0x4016c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x40719c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x404c24
push esi
mov dword [ebp - 0x120], eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x40171a
push esi
call dword [sym.imp.MSVCR100.dll_perror]
add esp, 4
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402908
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x120]
push 0x404c20
push esi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x40175b
push esi
call dword [sym.imp.MSVCR100.dll_perror]
add esp, 4
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402908
mov esp, ebp
pop ebp
ret 0xc
push edi
push 0x100
lea ecx, [ebp - 0x118]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401879
lea ecx, [ecx]
mov edx, dword [ebp - 0x120]
push edx
push esi
lea eax, [ebp - 0x118]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4018a6
add dword [0x40731c], eax
fild dword [0x40731c]
mov edx, dword [ebx + 0xdc]
fnstcw word [ebp - 0x11a]
fidiv dword [0x407320]
movzx eax, word [ebp - 0x11a]
or eax, 0xc00
mov dword [ebp - 0x128], eax
push 0
fstp dword [ebp - 0x124]
fld dword [ebp - 0x124]
fmul qword [0x404c18]
fstp dword [ebp - 0x124]
fld dword [ebp - 0x124]
fldcw word [ebp - 0x128]
fistp qword [ebp - 0x12c]
mov ecx, dword [ebp - 0x12c]
push ecx
push 0x402
fldcw word [ebp - 0x11a]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
fld dword [ebp - 0x124]
call fcn.00402920
mov esi, eax
sub eax, dword [0x407324]
cmp eax, 1
jl 0x401851
push esi
lea ecx, [ebp - 0x18]
push 0x404c10
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebx + 0x140]
call sub.mfc100.dll_Ordinal_12868
push edi
push 0x100
lea eax, [ebp - 0x118]
push 1
push eax
mov dword [0x407324], esi
call dword [sym.imp.MSVCR100.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x401780
mov esi, dword [sym.imp.MSVCR100.dll_fclose]
push edi
call esi
mov ecx, dword [ebp - 0x120]
push ecx
call esi
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402908
mov esp, ebp
pop ebp
ret 0xc
push str.Fatal_write_error._n
call dword [sym.imp.MSVCR100.dll_perror]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffffc
pop ebx
call fcn.00402908
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402908
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40719c]
jne 0x402912
repz ret
jmp fcn.00402e0e
Function at 0x40d85e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x402065
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40101c
ret
mov edi, edi
mov esi, 0x4010c7
mov edi, esi
push 1
push 0x402083
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreW]
mov edx, eax
pop ebx
mov ecx, 0x380
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x401040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x401066
xor eax, eax
mov dword [0x402096], eax
add esp, 4
ret
Function at 0x401430
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
sub esp, 0x24
mov al, 0x65
push ebx
mov byte [esp + 0x19], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x23], al
mov byte [esp + 0xd], al
mov al, 0x6c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov cl, 0x73
push esi
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], al
mov eax, dword [0x40c31c]
push edi
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], cl
mov bl, 0x48
mov dl, 0x61
mov cl, 0x70
push str.VirtualAlloc
push eax
mov byte [esp + 0x2c], 0x47
mov byte [esp + 0x2e], 0x74
mov byte [esp + 0x2f], 0x50
mov byte [esp + 0x30], 0x72
mov byte [esp + 0x31], 0x6f
mov byte [esp + 0x32], 0x63
mov byte [esp + 0x36], bl
mov byte [esp + 0x38], dl
mov byte [esp + 0x39], cl
mov byte [esp + 0x3a], 0
mov byte [esp + 0x20], bl
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], 0x41
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x63
mov byte [esp + 0x29], 0
call ebp
mov esi, eax
mov eax, dword [esp + 0x38]
cmp word [eax], 0x5a4d
je 0x4014dc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x14], edi
cmp dword [edi], 0x4550
je 0x4014f7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x34]
push 4
push 0x2000
push ecx
push edx
call esi
mov ebx, eax
test ebx, ebx
jne 0x40152a
mov eax, dword [edi + 0x50]
push 4
push 0x2000
push eax
push ebx
call esi
mov ebx, eax
test ebx, ebx
jne 0x40152a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [0x40c31c]
lea ecx, [esp + 0x18]
push ecx
push edx
call ebp
mov ecx, dword [0x40c31c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push eax
push ecx
call ebp
push 0x14
push 0
call eax
push eax
call dword [esp + 0x1c]
mov ebp, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], eax
mov edx, dword [edi + 0x50]
push edx
push ebx
call esi
mov eax, dword [edi + 0x54]
push 4
push 0x1000
push eax
push ebx
call esi
mov esi, dword [esp + 0x38]
mov edx, dword [edi + 0x54]
mov edi, eax
push ebp
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebp], eax
mov dword [eax + 0x34], ebx
call fcn.00401630
mov ecx, dword [esi + 0x34]
mov eax, ebx
add esp, 0xc
sub eax, ecx
je 0x4015ce
push eax
push ebp
call fcn.004017f0
add esp, 8
push ebp
call fcn.00401890
add esp, 4
test eax, eax
je 0x4015ff
push ebp
call fcn.00401710
mov eax, dword [ebp]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x401619
add eax, ebx
test eax, eax
je 0x4015ff
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x401612
push ebp
call fcn.00401b20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov dword [ebp + 0x10], 1
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x24
ret