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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47d098
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 0x430799
inc eax
mov dword [esi + 0x10], eax
jmp 0x4308ac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4307ad
mov eax, 0xffffffc7
jmp 0x4308ae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4307be
cmp dword [esi + 8], eax
jne 0x4307ad
cmp dword [esi + 8], eax
jne 0x4307d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4307d7
mov eax, 0xffffffc7
jmp 0x4308ae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4307eb
push eax
mov ecx, ebx
call fcn.0042ff90
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.00404060
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43081c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00404080
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042f700
test eax, eax
mov dword [esp + 0x38], eax
je 0x43084f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x515560
call fcn.00404260
mov eax, dword [esp + 0x38]
jmp 0x4308ae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004305c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x430893
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004305e0
mov esi, eax
test esi, esi
jne 0x4308c3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004305c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x430865
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x515560
call fcn.00404260
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], 0x515560
call fcn.00404260
mov eax, esi
jmp 0x4308ae

Function at 0x435260
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4352c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4352c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4352c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4352c0
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 0x435300
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 0x440e70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d988
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.004767c8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004407d0
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.004766f6
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.00472fb7
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.00472fb7
push 1
push 0
push 0
mov ecx, esi
call fcn.00472f5f
push 1
push 0
push 1
mov ecx, esi
call fcn.00472f5f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047683a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440ff0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d9a8
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.004767c8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004407d0
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.004766f6
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 0x4410b4
cmp dword [esp + 0x40], 1
jne 0x4410b2
cmp ecx, eax
jge 0x4410b4
mov eax, ecx
cmp eax, 0xc8
jge 0x4410c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00440e70
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.0047683a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4418b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47da53
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.004713d7
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.00476a70
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00477f8c
test eax, eax
je 0x4419cc
mov ecx, dword [esp + 0x3c]
call fcn.00476a9d
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 0x441990
push edi
mov ecx, esi
call fcn.004740fe
mov ecx, esi
call fcn.00441b70
cmp dword [esp + 0x38], 1
jne 0x4419c5
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.00474239
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 0x443bc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443bf3
push esi
call fcn.00451f80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x443bec
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 0x443c79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443c62
mov eax, dword [esi + 8]
test eax, eax
je 0x443c17
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 0x443c5e
cmp eax, 2
je 0x443c62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x443c0a
cmp eax, 3
je 0x443c3d
cmp eax, 1
jne 0x443c0a
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 0x443c0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x443c0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443ca0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443c88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443ca0
add esp, 4
pop esi
ret

Function at 0x444520
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x444541
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x444541
mov eax, dword [eax + 0x44]
test eax, eax
je 0x444541
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 0x4721cd
Capabilities:
Get graphical window text

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

Function at 0x4738bb
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 0x4738fd
call fcn.00479377
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4738fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4738f4
xor eax, eax
jmp 0x473905
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047390b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4798a7
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 0x4798d5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4798f3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047980d
jmp 0x4798f3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4798f3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047980d
test edi, edi
mov eax, edi
jne 0x4798dd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x41244f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004122ce

Function at 0x41682b
Capabilities:
Set environment variable

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

Function at 0x416836
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004163d4

Function at 0x5327c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf3000]
push edi
or ebp, 0xffffffff
jmp 0x5327e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5327e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5327d8
mov eax, 1
add ebx, ebx
jne 0x5327fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x53280c
jne 0x53282b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53282b
dec eax
add ebx, ebx
jne 0x532818
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5327f0
add ebx, ebx
jne 0x532827
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x53287d
xor ecx, ecx
sub eax, 3
jb 0x532843
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5328b2
sar eax, 1
mov ebp, eax
jmp 0x53284e
add ebx, ebx
jne 0x53284e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53281c
inc ecx
add ebx, ebx
jne 0x53285c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53281c
add ebx, ebx
jne 0x532869
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x53285e
jne 0x53287a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x53285e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x53289c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x53288e
jmp 0x5327de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x53289c
add edi, ecx
jmp 0x5327de
pop esi
mov edi, esi
mov ecx, 0x65c8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5328ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x5328bf
lea edi, [esi + 0x118000]
mov eax, dword [edi]
or eax, eax
je 0x532927
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x132a14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x132b54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5328e5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x132b58]
or eax, eax
je 0x532921
mov dword [ebx], eax
add ebx, 4
jmp 0x532902
call dword [esi + 0x132b68]
mov ebp, dword [esi + 0x132b5c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x48f]
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 0x53295b
sub esp, 0xffffff80
jmp 0x4a1900
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x403203
pop dword [ebp - 0x28]
mov eax, 0xc3b69bee
add eax, 0x3c899615
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xaccf0a
add dword [ebp - 0x38], 0x4da57641
mov dword [ebp - 0x34], 0xb7801e67
add dword [ebp - 0x34], 0x7ab32dde
mov dword [ebp - 0x30], 0xde21bcf5
add dword [ebp - 0x30], 0x6e2a8739
mov dword [ebp - 0x2c], 0xaab16702
add dword [ebp - 0x2c], 0x554e98fe
lea eax, [ebp - 0x38]
push eax
mov eax, 0xbc55b8bb
add eax, 0x43eab7a9
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xd6ebb6a
sub dword [ebp - 0x38], 0x98fc5214
mov dword [ebp - 0x34], 0x5da7615
add dword [ebp - 0x34], 0x3b91eb60
mov dword [ebp - 0x30], 0x98d24f8b
sub dword [ebp - 0x30], 0x3562e31f
mov dword [ebp - 0x2c], 0x8d2adeff
sub dword [ebp - 0x2c], 0x8d2adeff
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x34541
push 0
call eax
mov ecx, 0xd11eabfd
sub ecx, 0xd11e6d0d
mov ebx, eax
mov edx, 0xff02c0e6
sub edx, 0xfec1c0e6
add edx, dword [ebp - 0x28]
mov edi, 0x417d1133
add edi, 0x9f9e6c23
xor dword [ebp - 0x1c], edi
mov esi, dword [edx]
add esi, edi
add dword [ebp - 0x18], 0xfdfa9fd0
mov dword [ebx], esi
xor dword [ebp - 0x20], ebx
add ebx, 0xf9ba80f5
add ebx, 0x6457f0f
add edx, 4
loop 0x403320
add eax, 0x3c719dba
sub eax, 0x3c70af27
mov ebx, eax
add eax, 0x647a8b74
add eax, 0x9b857491
mov ecx, 0x32017641
add ecx, 0xce3e89bf
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00403d30
mov eax, dword [0x40a3c0]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
test eax, eax
je 0x401027
mov ecx, dword [0x40a3c0]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov esi, 0x40a3a0
mov edx, dword [esi]
push edx
call ebx
test eax, eax
je 0x401046
mov eax, dword [esi]
push 0
push 0
push 0x12
push eax
call edi
add esi, 4
cmp esi, 0x40a3b8
jl 0x401032
mov ecx, dword [0x40b148]
push ecx
call fcn.00405578
mov edx, dword [0x40a3b8]
add esp, 4
push edx
call ebx
test eax, eax
pop edi
pop esi
pop ebx
je 0x40108a
mov eax, dword [0x40a3bc]
mov ecx, dword [0x40a3b8]
push 0
push eax
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
call dword [sym.imp.MSVCR80.dll_exit]
int3

Function at 0x401500
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x401547
mov eax, dword [esp + 8]
push esi
push 1
push eax
call sub.gnwie.dll_WIgetvar
mov esi, eax
mov ecx, dword [esi + 0x10]
add esp, 8
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40153f
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push edx
push eax
push 0x601
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push edi
call dword [sym.imp.MSVCR80.dll_exit]
pop esi
pop edi
ret
Function at 0x4016d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40a370]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, 1
cmp ebp, esi
push edi
mov edi, dword [esp + 0x124]
jle 0x401769
nop
mov ecx, dword [edi + esi*4]
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401708
sub eax, ebx
cmp eax, 3
jbe 0x401762
cmp byte [ecx], 0x2d
jne 0x401762
cmp byte [ecx + 2], 0x3d
jne 0x401762
movsx eax, byte [ecx + 1]
push eax
call dword [sym.imp.MSVCR80.dll_toupper]
add esp, 4
cmp eax, 0x49
je 0x40174e
cmp eax, 0x50
jne 0x401762
mov ecx, dword [edi + esi*4]
add ecx, 3
push ecx
call dword [sym.imp.MSVCR80.dll_atol]
mov dword [esp + 0x18], eax
jmp 0x40175f
mov edx, dword [edi + esi*4]
add edx, 3
push edx
call dword [sym.imp.MSVCR80.dll_atoi]
mov dword [esp + 0x14], eax
add esp, 4
add esi, 1
cmp esi, ebp
jl 0x401700
push 0x100
lea ebx, [esp + 0x1c]
call fcn.00401550
add esp, 4
test eax, eax
je 0x4017ba
push 0x10
push str.SAP_Graphics_Fatal_Error
mov eax, ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4017b2
mov ecx, dword [esp + 0x10]
push 0
push ecx
push 0x601
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x6f
call dword [sym.imp.MSVCR80.dll_exit]
lea edx, [ebp*4]
push edx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x4017d4
xor ax, ax
jmp 0x40183c
xor edx, edx
test ebp, ebp
jle 0x4017f0
xor ecx, ecx
lea esp, [esp]
mov esi, dword [edi + ecx*4]
add edx, 1
mov dword [eax + ecx*4], esi
movsx ecx, dx
cmp ecx, ebp
jl 0x4017e0
push 1
push eax
push ebp
call sub.gnwie.dll_WIinitialise
movzx esi, ax
add esp, 0xc
test si, si
je 0x4017cf
push 1
push esi
call sub.gnwie.dll_WIgetvar
mov edx, dword [0x40a3c8]
mov ecx, dword [0x40a3c4]
push edx
push ecx
push str.hInst__X__hPrev__X_n
push esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
call sub.gnwie.dll_Wtrace
push sym.gnscx.exe_cbexit
push esi
call sub.gnwie.dll_Wregexitproc
add esp, 0x20
mov ax, si
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406bfe
add esp, 0x10c
ret
Function at 0x401a50
Capabilities:
Terminate process

Disassembly:
sub esp, 0x8c
mov eax, dword [0x40a370]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
push esi
mov dword [esp + 0xc], eax
mov al, byte [ebx]
xor esi, esi
test al, al
push edi
mov ecx, ebx
mov edi, 1
je 0x401ab8
lea esp, [esp]
cmp al, 0x22
jne 0x401a9f
xor edx, edx
test esi, esi
sete dl
mov esi, edx
jmp 0x401aae
cmp al, 0x20
je 0x401aa7
test al, al
jne 0x401aae
test esi, esi
jne 0x401aae
add edi, 1
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x401a90
mov ebp, dword [sym.imp.MSVCR80.dll_malloc]
lea eax, [edi*4 + 4]
push eax
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
push 0x80
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401af0
lea ecx, [esp + 0x18]
sub eax, edx
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x401b02
sub ecx, esi
add eax, ecx
je 0x401c06
add eax, 2
push eax
call ebp
mov edi, eax
add esp, 4
test edi, edi
jne 0x401b2c
push 0xffffffffffffffff
call dword [sym.imp.MSVCR80.dll_exit]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401b33
sub eax, edx
add eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.MSVCR80.dll_memcpy
lea eax, [esp + 0x24]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401b57
mov ebp, dword [esp + 0x14]
sub eax, ecx
lea esi, [eax + edi + 1]
mov eax, ebx
mov dword [ebp], edi
mov edi, 1
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401b77
sub eax, ecx
add eax, 1
push eax
push ebx
push esi
call sub.MSVCR80.dll_memcpy
mov eax, esi
add esp, 0xc
xor ebx, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401b97
sub eax, ecx
add eax, 1
test eax, eax
mov dword [ebp + 4], esi
jle 0x401c0a
lea ecx, [esi + 1]
mov edx, eax
movsx eax, byte [esi]
sub eax, 0
je 0x401bfc
sub eax, 0x20
je 0x401be7
sub eax, 2
je 0x401bcb
add esi, 1
add ecx, 1
jmp 0x401bff
xor eax, eax
test ebx, ebx
sete al
mov byte [esi], 0
mov ebx, eax
test ebx, ebx
je 0x401bdf
mov dword [ebp + edi*4], ecx
add esi, 1
add ecx, 1
jmp 0x401bff
test ebx, ebx
jne 0x401bf4
add edi, 1
mov byte [esi], bl
mov dword [ebp + edi*4], ecx
add esi, 1
add ecx, 1
jmp 0x401bff
add edi, 1
sub edx, 1
jne 0x401bb1
jmp 0x401c0a
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xa4]
push ebp
push edi
mov dword [0x40a3c4], ecx
mov dword [0x40a3c8], edx
call fcn.00404920
mov ecx, dword [esp + 0xa0]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00406bfe
add esp, 0x8c
ret 0x10