joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x741b13f3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x475007b8
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4015a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a438
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x42400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00404600
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test edx, edx
jne 0x4015e1
xor ecx, ecx
jmp 0x4015f5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4015e6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.00404d60
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x401615
cmp eax, 0xffffffff
je 0x401615
xor bl, bl
jmp 0x401617
mov bl, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x401639
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x48]
sub esp, 0x3c
cmp dword [eax - 0xc], 0
push ebx
mov bl, 1
jne 0x403269
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2c], eax
xorps xmm0, xmm0
mov eax, dword [ecx + 0x4c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
sbb al, al
and al, bl
movzx ebx, al
xor eax, eax
cmp dword [ebp - 0x1c], 0x20
cmovle ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4032d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403cf0
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a7b8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
ja 0x403d71
je 0x403d4c
sub eax, 2
je 0x403d3f
sub eax, 0xe
jne 0x403edd
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x403edd
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x403edd
call fcn.00401890
mov esi, dword [sym.imp.USER32.dll_EndDialog]
test al, al
jne 0x403d62
push 0
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x24]
push 0
push dword [eax + 4]
call esi
jmp 0x403edd
cmp eax, 0x111
jne 0x403edd
movzx eax, word [ebp + 0x10]
sub eax, 0x419
je 0x403e02
sub eax, 1
jne 0x403edd
mov eax, dword [edi + 0x24]
push 0x419
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x403df2
mov edx, dword [edi + 0x20]
lea ecx, [ebp + 0xc]
push str.Report.txt
add edx, 0x10
call fcn.00404170
add esp, 4
push 1
push 0
push 0
push dword [ebp + 0xc]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403df2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x403edd
mov eax, dword [edi + 0x24]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x419
push dword [eax]
call ebx
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
mov eax, dword [edi + 0x24]
push 0
push 0x41a
push dword [eax]
call ebx
push eax
call esi
mov eax, dword [edi + 0x24]
push 0x421028
push 0x41d
push dword [eax]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
call fcn.004012f0
mov ecx, eax
test ecx, ecx
je 0x403ef3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
mov eax, dword [edi + 0x24]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.00403090
add esp, 8
lea ecx, [ebp + 0xc]
push 4
push 0x421038
call fcn.00404d60
mov eax, dword [edi + 0x24]
mov esi, dword [ebp + 0xc]
push esi
push 0x41c
push dword [eax]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [edi + 0x24]
push 0x403440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x1c], eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x403edd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00405840
int3
Function at 0x4057d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
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 0x405829
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405829
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405818
cmp esi, edx
jae 0x405829
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405806
cmp esi, edx
jae 0x405829
cmp word [esi], 0
je 0x405829
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x405d80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aa18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 8]
cmp ecx, dword [edi + 0x10]
jb 0x405dc8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0xc24], ecx
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x14]
sub eax, esi
sar eax, 2
cmp eax, ecx
jbe 0x405fa4
mov esi, dword [esi + ecx*4]
mov eax, dword [edi + 0xc]
push 0x800
push 0
mov dword [edi + 0xc28], 0
lea ebx, [eax + esi*2]
mov dword [edi + 0x20], 0
lea eax, [edi + 0xc2c]
mov dword [ebp + 8], ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.00409df0
push 0xc00
lea eax, [edi + 0x24]
push 0
push eax
call fcn.00409df0
mov ecx, dword [edi + 0xc24]
add esp, 0x18
inc ecx
cmp ecx, dword [edi + 0x10]
jae 0x405e4b
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
sub eax, edx
sar eax, 2
cmp eax, ecx
jbe 0x405fa9
mov eax, dword [edx + ecx*4]
jmp 0x405e4e
mov eax, dword [edi + 8]
sub eax, esi
mov dword [edi + 0xc28], eax
cmp eax, 0x400
jb 0x405eca
call fcn.004012f0
mov ecx, eax
test ecx, ecx
je 0x405fae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 0xc24]
inc eax
mov dword [edi + 0xc28], 0x3ff
push eax
lea eax, [ebp - 0x10]
push str._CTextLine::SetLine__d
push eax
call fcn.00404ee0
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405eca
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0xc28]
xor esi, esi
lea eax, [ecx - 1]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x405f10
nop dword [eax]
push 2
push ebx
push 0x421104
call fcn.0040e316
add esp, 0xc
test eax, eax
je 0x405f05
inc esi
add ebx, 2
cmp esi, dword [ebp - 0x10]
jl 0x405ee0
mov ecx, dword [edi + 0xc28]
jmp 0x405f0d
mov dword [edi + 0xc28], esi
mov ecx, esi
mov ebx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
jle 0x405f3b
mov edx, 0xa
nop dword [eax + eax]
cmp dx, word [ebx + eax*2]
je 0x405f33
inc eax
cmp eax, ecx
jl 0x405f20
mov ecx, dword [edi + 0xc28]
jmp 0x405f3b
mov dword [edi + 0xc28], eax
mov ecx, eax
lea eax, [ecx - 1]
xor esi, esi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x405f74
push 2
push ebx
push 0x42110c
call fcn.0040e316
add esp, 0xc
test eax, eax
je 0x405f6c
inc esi
add ebx, 2
cmp esi, dword [ebp - 0x10]
jl 0x405f47
mov ecx, dword [edi + 0xc28]
jmp 0x405f74
mov dword [edi + 0xc28], esi
mov ecx, esi
test ecx, ecx
je 0x405db2
lea eax, [ecx + ecx]
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0040b650
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00406350
call fcn.00406350
push 0x80004005
call fcn.00405840
int3
Function at 0x4063b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
push 0
push 0x425748
mov edi, edx
mov dword [ebp - 0x214], 0
mov esi, ecx
call fcn.00409df0
push 0xa28
push 0
push 0x425950
call fcn.00409df0
add esp, 0x18
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406531
mov ax, word [0x420af8]
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00409df0
add esp, 0xc
mov dword [ebp - 0x21c], 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.INSTALLDIR
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406531
call fcn.004012f0
mov ecx, eax
test ecx, ecx
je 0x406543
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004046c0
test al, al
jne 0x4064e9
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4064c7
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x210]
call fcn.00404970
lea ecx, [ebp - 0x210]
call fcn.00406a60
mov esi, dword [ebp - 0x210]
push ecx
push esi
push ecx
mov ecx, 0x425748
call fcn.00406360
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40651f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040805b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0040805b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405840
int3
Function at 0x402628
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.00402690
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x41bcc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xc8]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov ecx, 0x44c432
call fcn.0041cf2d
mov ecx, dword [ebp + 0xc]
call fcn.004087b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x41bd07
xor eax, eax
jmp 0x41bea7
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2c], ecx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x14], 0xffff
ja 0x41bd5f
mov ax, word [ebp - 0x14]
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x1c]
movzx edx, word [ebp - 0x44]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x50]
jmp 0x41bea7
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x18]
sub ecx, 1
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x5c]
ja 0x41bea5
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x5c]
shr eax, 1
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x74]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x17c]
mov al, byte [edx]
mov byte [ebp - 0x17d], al
mov ecx, dword [ebp - 0x178]
cmp al, byte [ecx]
jne 0x41be1a
cmp byte [ebp - 0x17d], 0
je 0x41be0e
mov edx, dword [ebp - 0x17c]
mov al, byte [edx + 1]
mov byte [ebp - 0x17e], al
mov ecx, dword [ebp - 0x178]
cmp al, byte [ecx + 1]
jne 0x41be1a
add dword [ebp - 0x17c], 2
add dword [ebp - 0x178], 2
cmp byte [ebp - 0x17e], 0
jne 0x41bdbc
mov dword [ebp - 0x184], 0
jmp 0x41be25
sbb edx, edx
or edx, 1
mov dword [ebp - 0x184], edx
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 0
jge 0x41be51
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x68], eax
jmp 0x41bea0
cmp dword [ebp - 0x98], 0
jle 0x41be65
mov eax, dword [ebp - 0x74]
sub eax, 1
mov dword [ebp - 0x5c], eax
jmp 0x41bea0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x74]
mov ax, word [ecx + edx*2]
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x1c]
movzx edx, word [ebp - 0xa4]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xb0]
jmp 0x41bea7
jmp 0x41bd72
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x188
cmp ebp, esp
call fcn.0041cf0a
mov esp, ebp
pop ebp
ret 8
Function at 0x41d635
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d674
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d674
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d674
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d674
cmp dword [ecx + 0x74], 0xe
jbe 0x41d674
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4297bf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e718
push 0x43e710
push str.FlsAlloc
push 0x1e
call fcn.0042962c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4297f3
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a134]
call esi
jmp 0x4297f9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42983d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e728
push 0x43e720
push str.FlsGetValue
push 0x20
call fcn.0042962c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429874
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401bde
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
call fcn.00401b5b
and word [ebp - 0x16], 0
mov word [ebp - 0x2c], 0x61
mov word [ebp - 0x2a], 0x73
mov word [ebp - 0x28], 0x77
mov word [ebp - 0x26], 0x68
mov word [ebp - 0x24], 0x6f
mov word [ebp - 0x22], 0x6f
mov word [ebp - 0x20], 0x6b
mov word [ebp - 0x1e], 0x2e
mov word [ebp - 0x1c], 0x64
mov word [ebp - 0x1a], 0x6c
mov word [ebp - 0x18], 0x6c
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov ebx, dword [eax]
cmp ebx, eax
je 0x401cb9
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x401cb9
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x20]
add esi, edi
add eax, edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x1c]
add eax, edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24]
add eax, edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0x30]
call fcn.004100e7
pop ecx
test eax, eax
pop ecx
je 0x401cb2
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jbe 0x401cb2
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov eax, edi
add eax, dword [ecx]
push eax
call fcn.00401b6d
pop ecx
test eax, eax
pop ecx
je 0x401cc0
inc dword [ebp - 4]
add dword [ebp - 8], 4
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x401c8d
mov ebx, dword [ebx]
cmp ebx, dword [ebp - 0xc]
jne 0x401c42
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x401cbb

Function at 0x407804
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x444916
call fcn.0040fbf4
sub esp, 0x14
push esi
mov esi, ecx
fldz
mov eax, 0x447940
push edi
fstp dword [esi + 0xc]
fldz
mov dword [ebp - 0x10], esi
mov dword [esi], eax
fstp dword [esi + 8]
fldz
fstp dword [esi + 4]
fldz
and dword [ebp - 4], 0
mov dword [esi + 0x10], eax
fstp dword [esi + 0x1c]
fldz
fstp dword [esi + 0x18]
fldz
fstp dword [esi + 0x14]
lea edi, [esi + 0x20]
fldz
mov dword [edi], eax
fstp dword [edi + 0xc]
fldz
fstp dword [edi + 8]
fldz
fstp dword [edi + 4]
fld1
push ecx
mov byte [ebp - 4], 2
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
fld1
push ecx
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.00407997
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00407a11
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00407990
fldz
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
fldz
push ecx
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.00407997
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00407a11
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00407990
mov ecx, dword [ebp - 0xc]
mov eax, esi
fldz
pop edi
fstp dword [esi + 0x30]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x417129
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x45d4f8
cmp edx, dword [eax]
je 0x41714b
add eax, 8
inc ecx
cmp eax, 0x45d588
jl 0x41713c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x45d4f8]
jne 0x417279
mov eax, dword [0x46067c]
cmp eax, 1
je 0x417253
test eax, eax
jne 0x41717c
cmp dword [0x45ce78], 1
je 0x417253
cmp edx, 0xfc
je 0x417279
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4171b3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004172e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004101b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4171f6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004101b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44d58c
push edi
call fcn.0041af70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004172e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004172f0
lea eax, [ebp - 0xa0]
push 0x44d56c
push eax
call fcn.004172f0
push dword [esi + 0x45d4fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004172f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041aee0
add esp, 0x2c
pop edi
jmp 0x417279
lea eax, [ebp + 8]
lea esi, [esi + 0x45d4fc]
push 0
push eax
push dword [esi]
call fcn.004101b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4222b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00410700
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42237b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42237b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42232e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x422339
or bh, 8
and edi, 0x8000000
je 0x422354
mov eax, dword [0x4622bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42237b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret