joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439030
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47dad8
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.004769b1
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004389d0
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.004768df
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.004731a3
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.004731a3
push 1
push 0
push 0
mov ecx, esi
call fcn.0047314b
push 1
push 0
push 1
mov ecx, esi
call fcn.0047314b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00476a23
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4391b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47daf8
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.004769b1
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004389d0
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.004768df
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 0x439274
cmp dword [esp + 0x40], 1
jne 0x439272
cmp ecx, eax
jge 0x439274
mov eax, ecx
cmp eax, 0xc8
jge 0x439280
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00439030
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.00476a23
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4399f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47db63
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.004715c4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.00476c59
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00478175
test eax, eax
je 0x439b0c
mov ecx, dword [esp + 0x3c]
call fcn.00476c86
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 0x439ad0
push edi
mov ecx, esi
call fcn.004742f3
mov ecx, esi
call fcn.00439c70
cmp dword [esp + 0x38], 1
jne 0x439b05
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.0047442e
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 0x43c520
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c553
push esi
call fcn.0043f630
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c54c
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 0x43c5d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c5c2
mov eax, dword [esi + 8]
test eax, eax
je 0x43c577
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 0x43c5be
cmp eax, 2
je 0x43c5c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c56a
cmp eax, 3
je 0x43c59d
cmp eax, 1
jne 0x43c56a
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 0x43c56a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c56a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c600
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c5e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c600
add esp, 4
pop esi
ret

Function at 0x44a6b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b18f8]
xor edx, edx
cmp eax, edx
jne 0x44a6d6
xor eax, eax
mov byte [eax + 0x4b17f8], al
inc eax
cmp eax, 0x100
jl 0x44a6be
mov dword [0x4b18f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b17f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44a767
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 0x44a73a
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 0x44a708
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44a7e0
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 0x44a833
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 0x44a81a
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 0x4511b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47dffe
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.00451ad0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x484cf4
call fcn.0046fd53
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x451243
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0046fd53
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x45123c
push 0
mov ecx, eax
call fcn.004482e0
mov dword [esi + 0xc], eax
jmp 0x451245
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x451245
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 0x4723b9
Capabilities:
Get graphical window text

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

Function at 0x473aab
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 0x473aed
call fcn.00479565
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473aed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473ae4
xor eax, eax
jmp 0x473af5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473afb
pop edi
pop esi
pop ebx
ret 4
Function at 0x479a95
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 0x479ac3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479ae1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004799fb
jmp 0x479ae1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479ae1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004799fb
test edi, edi
mov eax, edi
jne 0x479acb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401487
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401487
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401476
cmp esi, edx
jae 0x401487
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401464
cmp esi, edx
jae 0x401487
movzx eax, word [esi]
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40290a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402949
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402949
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402949
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402949
cmp dword [ecx + 0x74], 0xe
jbe 0x402949
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408cd9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411df4
push 0x411dec
push str.FlsAlloc
push 0x1f
call fcn.00408c14
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408d0d
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f138]
call esi
jmp 0x408d13
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408d57
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411e04
push 0x411dfc
push str.FlsGetValue
push 0x21
call fcn.00408c14
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408d8e
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408d96
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411e0c
push 0x411e04
push str.FlsSetValue
push 0x22
call fcn.00408c14
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408dd0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40a546
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x418018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40a591
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040a6e1
test al, al
jne 0x40a58b
sub edx, 2
cmp edx, edi
jne 0x40a571
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40a5b3
lea eax, [edi + 2]
cmp edx, eax
je 0x40a5b3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040a492
add esp, 0x10
jmp 0x40a6ad
push esi
lea ecx, [ebp - 0x255]
call fcn.0040a6e1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a5f6
push dword [ebp - 0x25c]
jmp 0x40a5a3
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40a633
cmp word [ebp - 0x226], 0
je 0x40a654
cmp word [ebp - 0x226], ax
jne 0x40a633
cmp word [ebp - 0x224], 0
je 0x40a654
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040a492
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40a6a0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40a60d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40a688
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40a6ad
push 0x40a2c2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040c430
add esp, 0x10
jmp 0x40a67d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004024cc
leave
ret

Function at 0x40deb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dedd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dedd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x9c5440
push eax
push dword fs:[0]
pushfd
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xe7
mov dword [0x98c0ec09], eax
mov eax, dword [0xf6a8b15c]
jecxz 0x401003
xor dword [ecx], ecx
iretd
ljmp 0x2bdb:0xc41a7522
jne 0x40109c
invalid
mov ch, byte [edx + 0x477bf67f]
jle 0x4010d4
salc
rcr cl, 1
cwde
add al, 0x60
sub byte [ecx + 0x485b75a6], bh
adc byte [eax], cl
xor eax, 0x4156615a
clc
or edi, dword [esi + 0x54]
xchg byte [ebx + 0x456a3141], bl
adc dword [edx + 0x30], ecx
jno 0x401110
sbb ebx, edi
cmp al, 0x6e
jae 0x40107e
out dx, al
aad 0x69
sub dword [edi + 0x33], ebx
retf
sbb al, 0x83
pop ebp
ret 0xa0db
Function at 0x4018b0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0x8000
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call esi
push str.MAPI32.DLL
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [0x4097d8], eax
call esi
mov eax, dword [0x4097d8]
test eax, eax
je 0x401a3b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIInitialize
push eax
call esi
mov dword [0x4097e0], eax
mov eax, dword [0x4097d8]
push str.MAPIUninitialize
push eax
call esi
mov ecx, dword [0x4097d8]
push str.MAPILogonEx
push ecx
mov dword [0x4097e4], eax
call esi
mov edx, dword [0x4097d8]
push str.MAPIAllocateBuffer
push edx
mov dword [0x4097e8], eax
call esi
mov dword [0x4097fc], eax
mov eax, dword [0x4097d8]
push str.MAPIAllocateMore
push eax
call esi
mov ecx, dword [0x4097d8]
push str.MAPIFreeBuffer
push ecx
mov dword [0x409800], eax
call esi
mov edx, dword [0x4097d8]
push str.MAPIAdminProfiles
push edx
mov dword [0x409804], eax
call esi
mov dword [0x4097ec], eax
mov eax, dword [0x4097d8]
push str.MAPIOpenFormMgr
push eax
call esi
mov ecx, dword [0x4097d8]
push str.MAPIOpenLocalFormContainer
push ecx
mov dword [0x4097f0], eax
call esi
mov edx, dword [0x4097d8]
push str.ScMAPIXFromSMAPI
push edx
mov dword [0x4097f4], eax
call esi
mov ecx, dword [0x4097e0]
mov dword [0x4097f8], eax
test ecx, ecx
je 0x401a2b
mov edx, dword [0x4097e4]
test edx, edx
je 0x401a2b
mov edx, dword [0x4097fc]
test edx, edx
je 0x401a2b
mov edx, dword [0x409800]
test edx, edx
je 0x401a2b
mov edx, dword [0x409804]
test edx, edx
je 0x401a2b
mov edx, dword [0x4097f0]
test edx, edx
je 0x401a2b
mov edx, dword [0x4097f4]
test edx, edx
je 0x401a2b
mov edx, dword [0x4097ec]
test edx, edx
je 0x401a2b
mov edx, dword [0x4097e8]
test edx, edx
je 0x401a2b
test eax, eax
je 0x401a2b
lea eax, [esp + 8]
push eax
call ecx
test eax, eax
jl 0x401a2b
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x4097d8]
test eax, eax
je 0x401a3b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x4041d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4012c0
push 0x404498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x409880], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40987c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x409878], ecx
shr eax, 0x10
mov dword [0x409874], eax
call fcn.00405320
test eax, eax
jne 0x40423a
push 0x1c
call fcn.00404370
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405120
call fcn.00405110
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409c50], eax
call fcn.00404ce0
mov dword [0x40985c], eax
test eax, eax
je 0x40426d
mov eax, dword [0x409c50]
test eax, eax
jne 0x404277
push 0xffffffffffffffff
call fcn.00404640
add esp, 4
call fcn.00404a30
call fcn.00404940
call fcn.00404610
mov esi, dword [0x409c50]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x404356
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4042be
test al, al
je 0x4042be
and eax, 0xff
push eax
call fcn.004048e0
add esp, 4
test eax, eax
je 0x404298
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404298
cmp byte [esi], 0x22
jne 0x4042c7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4042d7
cmp al, 0x20
ja 0x4042d7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4042c7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4042f8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4042fd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00404640
jmp 0x40433b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4042c7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404356

Function at 0x404680
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4098b0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40469f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4098ac], 1
mov byte [0x4098a8], bl
jne 0x4046f9
mov ecx, dword [0x409c48]
test ecx, ecx
je 0x4046e7
mov esi, dword [0x409c44]
sub esi, 4
cmp esi, ecx
jb 0x4046e7
mov eax, dword [esi]
test eax, eax
je 0x4046e0
call eax
mov ecx, dword [0x409c48]
sub esi, 4
cmp esi, ecx
jae 0x4046d2
push 0x407014
push 0x407010
call fcn.00404730
add esp, 8
push 0x40701c
push 0x407018
call fcn.00404730
add esp, 8
test ebx, ebx
jne 0x404720
push ebp
mov dword [0x4098b0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x404ce0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4099c0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x404d22
call edi
mov esi, eax
test esi, esi
je 0x404d0c
mov eax, 1
jmp 0x404d1d
call ebp
mov ebx, eax
test ebx, ebx
je 0x404e2f
mov eax, 2
mov dword [0x4099c0], eax
cmp eax, 1
jne 0x404dc2
test esi, esi
jne 0x404d3b
call edi
mov esi, eax
test esi, esi
je 0x404e2f
cmp word [esi], 0
mov eax, esi
je 0x404d55
add eax, 2
cmp word [eax], 0
jne 0x404d43
add eax, 2
cmp word [eax], 0
jne 0x404d43
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x404db4
push edi
call fcn.004056b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404db4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x404da6
push ebx
call fcn.00405660
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x404e2f
test ebx, ebx
jne 0x404dd3
call ebp
mov ebx, eax
test ebx, ebx
je 0x404e2f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x404deb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404ddb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404ddb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004056b0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x404e0d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret