joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f320
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov dword [ebp - 4], eax
push esi
mov esi, edx
push edi
test eax, eax
je 0x41f4a4
cmp dword [eax + 0x18], 0
jne 0x41f4a4
cmp dword [eax + 0x3c], 0
je 0x41f4a4
cmp dword [eax + 0x1c], 0
je 0x41f4a4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f360
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
test ecx, eax
je 0x41f411
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f390
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp eax, ecx
sbb edx, edx
and edx, ecx
mov ecx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f3b4
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp edx, 0x400
ja 0x41f3f1
cmp eax, ecx
sbb eax, eax
and eax, ecx
call fcn.004c5380
mov edi, esp
test edi, edi
je 0x41f413
mov dword [edi], 0xcccc
add edi, 8
jmp 0x41f413
cmp eax, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.004af8fa
mov edi, eax
add esp, 4
test edi, edi
je 0x41f413
mov dword [edi], 0xdddd
add edi, 8
jmp 0x41f413
xor edi, edi
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x41f420
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x41f434
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push dword [eax + 0x3c]
push 0
push 0
call fcn.004b306d
add esp, 0x18
mov esi, eax
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
sub ebx, edi
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x41f470
test edi, edi
je 0x41f498
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x41f498
push edi
call fcn.004b113e
add esp, 4
mov eax, esi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420050
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x4f8458]
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x42006c
cmp dword [eax + 4], 0
jne 0x4200c3
mov eax, dword [eax]
test eax, eax
jne 0x420060
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x42022c
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
nop
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x4200a0
mov ecx, dword [0x4f8458]
mov dword [eax], ecx
mov dword [0x4f8458], eax
test eax, eax
je 0x42022c
mov ebx, dword [eax + 4]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
mov ecx, dword [ebx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
call fcn.00420310
test eax, eax
je 0x420225
push 0x28
call fcn.004af8fa
mov esi, eax
add esp, 4
test esi, esi
je 0x420225
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
and edx, 0xf
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x24]
mov eax, ecx
and eax, 1
shl edx, 3
or edx, eax
mov dword [esi], ebp
mov eax, dword [esi + 0x14]
and eax, 0xffffff80
or edx, eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], edx
mov dword [esi + 0x24], eax
test ecx, ecx
je 0x420179
mov eax, dword [edi - 5]
mov dword [esi + 0xc], eax
mov ax, word [edi - 1]
mov word [esi + 0x10], ax
mov al, byte [edi + 1]
mov byte [esi + 0x12], al
jmp 0x420184
mov eax, dword [edi]
mov dword [esi + 0xc], eax
mov al, byte [edi + 4]
mov byte [esi + 0x10], al
shl edx, 0x1f
lea edi, [ebp - 5]
sar edx, 0x1f
lea ecx, [esp + 0x10]
test edx, edx
push ecx
cmove edi, ebp
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test edx, edx
push 0x40
setne al
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [esp + 0x24], eax
call ebp
test eax, eax
jne 0x4201d3
mov ecx, ebx
call fcn.0041ffe0
push esi
call fcn.004b113e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x4201ee
mov eax, dword [esi]
mov word [eax], 0xf9eb
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x42021b
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, ebx
call fcn.0041ffe0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
Function at 0x420240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
shl ecx, 0x1f
sar ecx, 0x1f
test ecx, ecx
lea edi, [eax - 5]
cmove edi, eax
xor ebx, ebx
test ecx, ecx
lea eax, [esp + 0x10]
push eax
setne bl
push 0x40
lea ebx, [ebx*2 + 5]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x42028a
push esi
call fcn.004b113e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x4202a5
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x4202ab
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call fcn.004b113e
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x420630
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4fa808], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4fa804]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4fa808], ecx
inc eax
cmp eax, 0x270
jl 0x420640
mov dword [0x4f62c0], 1
mov dword [0x4fb1c8], 1
ret

Function at 0x420680
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4fb1c8], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4fa808
jne 0x42069f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.00420630
mov eax, dword [0x4fa808]
mov ebx, 0xe3
mov dword [0x4f62c0], 0x270
mov dword [0x4fb1cc], 0x4fa808
nop dword [eax]
mov edi, dword [esi + 4]
mov ecx, edi
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub ebx, 1
jne 0x4206c0
mov ebp, 0x18c
nop word [eax + eax]
mov ebx, dword [esi + 4]
lea esi, [esi + 4]
mov ecx, ebx
mov eax, ebx
xor ecx, edi
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
mov edi, ebx
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x390]
mov dword [esi - 4], ecx
sub ebp, 1
jne 0x420700
mov eax, dword [0x4fa808]
mov ecx, ebx
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, ebx
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
ret

Function at 0x420770
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4f62c0], 1
jne 0x42077e
call fcn.00420680
mov eax, dword [0x4fb1cc]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4fb1cc], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x4207c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4f62c0], 1
jne 0x4207ce
call fcn.00420680
mov eax, dword [0x4fb1cc]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4fb1cc], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4eea00]
mulsd xmm0, qword [0x4ee868]
ret

Function at 0x421030
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x421039
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x421052
cmp dword [0x4f9a60], 0
je 0x421052
mov ecx, 0x4f9a54
jmp fcn.00405900
mov al, byte [ecx + 0x15]
and al, 0x86
cmp byte [esp + 4], 0
mov byte [ecx + 0x15], al
je 0x421066
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4
Function at 0x4234e0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x124
cmp byte [0x4fb9c6], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0xab4], eax
jne 0x42368c
cmp byte [ebx + 0xaf8], 0
je 0x42368c
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4f78d0]
push 0
push 1
mov dword [0x4fba58], eax
call fcn.00401530
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004b3100
inc dword [0x4f78d4]
xor eax, eax
mov word [esp + 0x13a], ax
add esp, 0xc
mov eax, dword [0x4f48cc]
mov ecx, 0x42
add eax, 0x108
mov esi, 0x4f77b8
mov edi, eax
mov dword [0x4f48cc], eax
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4f9a70
mov dword [eax + 0x2c], 0
call fcn.00423190
cmp dword [0x4f78e8], 0
xorps xmm0, xmm0
movlpd qword [0x4fa570], xmm0
je 0x4235ab
mov eax, dword [0x4f62b4]
mov ecx, 0x4cd2cc
test eax, eax
je 0x4235a4
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebx + 0xaa8]
mov eax, 1
mov esi, dword [0x4f48c4]
mov dword [0x4f48c4], 0
mov byte [0x4fb9c6], 1
mov dword [esp + 0xc], eax
mov byte [0x4f6660], 0
test ecx, ecx
je 0x4235fb
call fcn.004015f0
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4235fb
xor ecx, ecx
movzx eax, al
cmp byte [0x4f6660], cl
cmove eax, ecx
mov dword [esp + 0xc], eax
mov byte [0x4f6660], 1
test al, al
je 0x42365c
mov dword [esp + 0x18], 0
call fcn.004517d0
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0xa74]
mov eax, dword [0x4fba58]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [ebx + 0xaa8], eax
mov dword [esp + 0x28], 1
sete al
mov dword [esp + 0x24], edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call fcn.00484c50
mov edx, dword [esp + 0xc]
movzx ecx, dl
xor edx, edx
cmp eax, 3
cmove ecx, edx
mov al, cl
test al, al
mov byte [0x4fb9c6], 0
mov eax, dword [ebp + 8]
jne 0x4236d8
cmp eax, 0xffffffff
jle 0x4236d8
lea ecx, [esp + 0x30]
call fcn.00404690
mov dword [0x4f48c4], esi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x4f6660], 0
jne 0x4236c8
cmp eax, 6
jne 0x4236c8
mov eax, dword [0x4f9148]
mov ecx, dword [0x4fba58]
pop edi
pop esi
cmp word [eax], 0
mov eax, 8
mov byte [0x4f6660], 1
cmovne ecx, dword [ebp + 0xc]
mov dword [0x4fba58], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov byte [0x4f6660], 0
push eax
call fcn.004236f0
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.004236f0
int3
Function at 0x423d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x10], edi
call fcn.00421fb0
mov dword [ebp - 0x68], vtable.TextMem.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0xa
mov dword [ebp - 4], 0
push str.E4847ED08866458F8DD35F94B37001C0
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x423ea7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x423ea7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x423ea7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x423ea7
cmp dword [eax], 0x4034b50
jne 0x423e74
call fcn.00404970
test al, al
je 0x423ebe
xor edx, edx
nop
mov eax, dword [edx*4 + 0x4f48dc]
lea ecx, [edx + 1]
inc edx
mov word [eax], cx
cmp edx, 0xa
jl 0x423de0
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + 8]
push 0x4f48dc
push dword [ebp - 0x18]
call fcn.00495340
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x423e74
lea edi, [ebx + 2]
push edi
call fcn.004af8fa
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x14], 1
push ebx
push esi
push eax
call fcn.004aef60
mov eax, dword [ebp - 0x1c]
add esp, 0xc
xor ecx, ecx
xor edx, edx
mov word [eax + ebx], cx
mov ecx, esi
push ebx
call fcn.0041e090
add esp, 4
push esi
call fcn.004b113e
add esp, 4
mov dword [ebp - 0x18], edi
call fcn.00404970
test al, al
je 0x423ebe
mov ecx, dword [0x4f7968]
call fcn.0041f270
mov ecx, dword [0x4f7964]
call fcn.0041f270
mov edi, dword [ebp - 0x10]
push 0xfde9
push 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0048f900
mov eax, dword [edi + 0xae0]
mov ecx, edi
inc dword [0x4f846c]
mov dword [0x4f9140], eax
lea eax, [ebp - 0x68]
push eax
call fcn.00423ee0
mov esi, eax
jmp 0x423ec0
push 0
push dword [ebp + 8]
xorps xmm3, xmm3
xor edx, edx
mov ecx, str.Could_not_extract_script_from_EXE.
call fcn.00497b50
add esp, 8
xor esi, esi
lea ecx, [ebp - 0x68]
call fcn.00422170
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429ad0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
mov word [esp + 0xc], ax
mov ebx, ebp
mov ax, word [0x4f5b2c]
mov word [esp + 0xe], ax
mov dword [esp + 0x10], 0x90028
mov dword [esp + 0x14], 0x3e003c
mov dword [esp + 0x18], 0x3d003a
mov dword [esp + 0x1c], 0x2d002b
mov dword [esp + 0x20], 0x2f002a
mov dword [esp + 0x24], 0x7e0021
mov dword [esp + 0x28], 0x7c0026
mov dword [esp + 0x2c], 0x5b005e
mov dword [esp + 0x30], 0x3f002e
mov dword [esp + 0x34], 0x7b
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
push edi
test ebp, ebp
je 0x429b95
movzx eax, word [ebp]
test ax, ax
je 0x429bab
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x429ba5
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x429b70
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x429b60
mov esi, dword [esp + 0x10]
xor ebx, ebx
test ebx, ebx
je 0x429bab
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x429bc5
mov esi, dword [esp + 0x10]
jmp 0x429b97
mov ecx, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429bb0
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x429be4
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x429bdd
cmp eax, 9
jne 0x429be4
sub edi, 2
cmp edi, ebp
ja 0x429bd0
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x429c13
cmp byte [esp + 0x4c], 0
je 0x429c07
push ebp
push str.This_line_does_not_contain_a_recognized_action.
mov ecx, esi
call fcn.0043bff0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
mov esi, dword [esp + 0x44]
push ebx
push ebp
push esi
call fcn.004b3100
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
Function at 0x43b700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], str.What
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], 0
push esi
mov esi, 8
test eax, eax
jne 0x43b7a0
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4f4db0]
mov dword [esp + 0x40], eax
movzx eax, word [edx + 2]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4e7bf8
mov dword [esp + 0x68], 0
mov eax, dword [eax*4 + 0x4f9140]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], 0
test eax, eax
je 0x43b868
cmp word [eax], 0
je 0x43b868
mov esi, 0xa
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], eax
mov edx, esi
lea ecx, [esp + 8]
call fcn.00481b30
pop esi
add esp, 0xcc
ret 0xc
Function at 0x43c690
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004c5460
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x43c78d
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x43c6d0
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x43c6d0
mov ecx, dword [edi + 0x24c]
movzx eax, word [edi + 0x250]
jmp 0x43c6d8
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
push dword [ecx*4 + 0x4f9140]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.00491dd0
mov edx, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
add edx, edx
cmp word [eax], 0
je 0x43c72b
push eax
mov ecx, edx
mov eax, 0x2000
sar ecx, 1
sub eax, ecx
push str._____Specifically:__s_n
push eax
lea eax, [esp + 0x1c]
add eax, edx
push eax
call fcn.00491dd0
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x43c74c
push 0x4e4980
push 0
push eax
mov ecx, edi
call fcn.0043bb20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x43c78d
test esi, esi
jne 0x43c77d
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x43c77d
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0043bff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 1
push eax
call fcn.0043bc60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x442c60
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004505f0
mov edi, eax
test edi, edi
je 0x442d5f
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00497950
mov ebx, eax
test ebx, ebx
je 0x442d5f
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x442cdc
cmp esi, dword [0x4f9a38]
je 0x442cdc
mov ecx, edi
call fcn.00497e30
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x442ce2
push 1
push esi
push dword [0x4f9a38]
call edi
test eax, eax
setne byte [esp + 0xf]
jmp 0x442ce2
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x442d3f
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4cd350
call fcn.00495fe0
mov eax, dword [0x4f48cc]
cmp dword [eax + 0x58], 0xffffffff
jle 0x442d3f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4f9a38], eax
je 0x442d2c
mov eax, dword [0x4f48cc]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x442d3f
mov ecx, dword [0x4f48cc]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401890
cmp byte [esp + 0xf], 0
je 0x442d51
push 0
push esi
push dword [0x4f9a38]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4f48cc]
test byte [eax + 0x100], 1
jne 0x442d8c
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e25ec
call fcn.00495fe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4cd2cc
push 0
push 0x4e25ec
mov ecx, esi
call fcn.0043b880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x443b50
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x443de2
cmp word [esi], 0
je 0x443de2
push str.Exist
push esi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x443b8a
lea edi, [eax + 1]
jmp 0x443bea
push str.Close
push esi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x443ba1
lea edi, [eax + 2]
jmp 0x443bea
push str.Priority
push esi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x443bb8
lea edi, [eax + 3]
jmp 0x443bea
push str.Wait
push esi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x443bcf
lea edi, [eax + 4]
jmp 0x443bea
push str.WaitClose
push esi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x443de2
mov edi, 5
lea eax, [edi - 1]
jmp dword [eax*4 + 0x443dfc]
push esi
push 0
push str.Parameter_1_invalid.
mov ecx, edi
call fcn.0043bc60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc