joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422cc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x422d28
cmp dword [ebp - 0x110], 0
jne 0x422d28
push edi
push esi
call fcn.00422c80
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x422d5f
lea ecx, [ebp - 0x11c]
push ecx
push 0x2021f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x422d5f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
pop edi
xor ecx, ebp
pop esi
call fcn.0042d845
mov esp, ebp
pop ebp
ret

Function at 0x422dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x422e1e
cmp dword [ebp - 0x110], 0
jne 0x422e1e
push edi
push esi
call fcn.00422d80
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x422e5c
push 0
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0x2021f
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x11c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042d845
mov esp, ebp
pop ebp
ret

Function at 0x422e70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
add eax, 1
pop ebp
ret
Function at 0x4236a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
push ecx
push eax
xor bl, bl
call fcn.00423420
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4236f6
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
push esi
call fcn.00423490
add esp, 0x1c
test al, al
je 0x42370f
mov ecx, dword [ebp - 0x24]
test edi, edi
mov al, 1
je 0x423711
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d845
mov esp, ebp
pop ebp
ret

Function at 0x423770
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00423420
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0042d845
mov esp, ebp
pop ebp
ret

Function at 0x4237d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00423420
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0042d845
mov esp, ebp
pop ebp
ret
Function at 0x423ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x45], 0
call esi
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x40
lea ecx, [ebp - 0x44]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423f30
cmp dword [ebp - 0x4c], 0x40
jb 0x423f30
push 0x40
lea edx, [ebp - 0x44]
push edx
push edi
call fcn.00427da0
mov eax, dword [ebp - 8]
add esp, 0xc
push 0
push 0
push eax
push ebx
call esi
cmp eax, dword [ebp - 8]
jne 0x423f30
push 0
lea ecx, [ebp - 0x4c]
push ecx
push 0x18
lea edx, [ebp - 0x148]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423f30
cmp dword [ebp - 0x4c], 0x18
jb 0x423f30
mov eax, 4
mov ecx, 0x444aec
lea edx, [ebp - 0x148]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x423daa
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x423d92
test eax, eax
je 0x423e0d
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x423df9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x423e0a
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x423df9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x423e0a
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x423df9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x423e0a
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x423e0a
test esi, esi
mov ebx, dword [ebp - 0x50]
mov eax, 1
jg 0x423e0f
or eax, 0xffffffff
jmp 0x423e0f
mov ebx, dword [ebp - 0x50]
xor eax, eax
test eax, eax
jne 0x423f30
mov ax, word [ebp - 0x144]
cmp ax, 0x8664
je 0x423e2e
cmp ax, 0x14c
jne 0x423f30
test byte [ebp - 0x132], 2
je 0x423f30
mov ax, word [ebp - 0x134]
cmp ax, 0xf0
jae 0x423e52
cmp ax, 0xe0
jb 0x423f30
cmp ax, 0x170
jbe 0x423e62
cmp ax, 0x160
ja 0x423f30
push 0x18
lea ecx, [ebp - 0x148]
push ecx
push edi
call fcn.00427da0
movzx edx, word [ebp - 0x134]
push edx
call fcn.0042e047
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423f30
movzx ecx, word [ebp - 0x134]
push 0
lea eax, [ebp - 0x4c]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423f27
movzx edx, word [ebp - 0x134]
cmp dword [ebp - 0x4c], edx
jb 0x423f27
movzx eax, word [esi]
cmp ax, 0x10b
jne 0x423ee4
push 0x40
push esi
push edi
call fcn.00427da0
lea eax, [esi + 0x88]
mov ecx, esi
sub ecx, eax
add ecx, 0xe0
push ecx
push eax
push edi
call fcn.00427da0
add esp, 0x18
jmp 0x423f23
cmp ax, 0x20b
jne 0x423f27
push 0x40
push esi
push edi
call fcn.00427da0
lea eax, [esi + 0x44]
mov edx, esi
sub edx, eax
add edx, 0x90
push edx
push eax
push edi
call fcn.00427da0
lea eax, [esi + 0x98]
mov ecx, esi
sub ecx, eax
add ecx, 0xf0
push ecx
push eax
push edi
call fcn.00427da0
add esp, 0x24
mov byte [ebp - 0x45], 1
push esi
call fcn.0042df6a
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x45]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d845
mov esp, ebp
pop ebp
ret
Function at 0x424040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
movzx eax, word [esi + 0x2a]
mov ecx, dword [esi + 0x2c]
push edi
mov edi, dword [ebp + 8]
push 0
lea eax, [eax + eax*4]
push 0
lea edx, [ecx + eax*8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx ecx, word [esi + 0x2a]
mov edx, dword [esi + 0x2c]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
cmp eax, ecx
je 0x42407b
pop edi
xor al, al
pop esi
pop ebp
ret
push 0
lea edx, [ebp + 0xc]
push edx
push 0x28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424075
cmp dword [ebp + 0xc], 0x28
jb 0x424075
mov eax, 1
add word [esi + 0x2a], ax
pop edi
pop esi
pop ebp
ret

Function at 0x4240b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x24]
test al, 0x20
push edi
jne 0x4240c7
test eax, 0x20000000
je 0x424132
mov eax, dword [esi + 0x10]
push eax
call fcn.0042e047
mov edi, eax
add esp, 4
test edi, edi
je 0x4240f9
mov ecx, dword [esi + 0x14]
mov ebx, dword [ebp + 8]
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esi + 0x14]
je 0x424100
push edi
call fcn.0042df6a
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x10]
push 0
lea edx, [ebp + 0xc]
push edx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4240f0
mov esi, dword [esi + 0x10]
cmp dword [ebp + 0xc], esi
jne 0x4240f0
mov ecx, dword [ebp + 0x10]
push esi
push edi
push ecx
call fcn.00427da0
push edi
call fcn.0042df6a
add esp, 0x10
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret

Function at 0x424230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.004275a0
mov esi, dword [ebp + 8]
add esp, 4
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x4000
push 0x4525c0
push esi
call edi
test eax, eax
je 0x4242a1
mov eax, dword [ebp - 4]
test eax, eax
je 0x4242a1
push eax
lea edx, [ebp - 0x60]
push 0x4525c0
push edx
call fcn.00427da0
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
push 0x4000
push 0x4525c0
push esi
call edi
test eax, eax
jne 0x424271
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x60]
push ecx
push edx
call fcn.00427c40
add esp, 8
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426750
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x7fffffff
push ebx
push esi
push edi
mov dword [ebp - 4], 0
jb 0x426782
mov ecx, dword [ebp + 8]
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x426770
sub ecx, esi
sar ecx, 1
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0x18]
xor esi, esi
xor bl, bl
test eax, eax
je 0x426797
mov esi, dword [eax]
mov bl, byte [eax]
and esi, 3
and bl, 0xfc
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x426873
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x14]
jae 0x426873
mov edx, dword [ebp + 8]
movzx ecx, word [edx + edi*2]
movzx edx, cx
cmp edx, 0x2b
je 0x42681b
cmp edx, 0x2f
je 0x426817
cmp edx, 0x3d
je 0x426813
cmp cx, 0x30
jb 0x426867
cmp cx, 0x39
ja 0x4267f4
add cl, 4
cmp cl, 0xff
je 0x426867
test esi, esi
jne 0x42681f
add cl, cl
add cl, cl
mov bl, cl
mov esi, 1
jmp 0x426867
cmp cx, 0x41
jb 0x426867
cmp cx, 0x5a
ja 0x426805
sub cl, 0x41
jmp 0x4267da
lea edx, [ecx - 0x61]
cmp dx, 0x19
ja 0x426867
sub cl, 0x47
jmp 0x4267da
xor esi, esi
jmp 0x426867
mov cl, 0x3f
jmp 0x4267e3
mov cl, 0x3e
jmp 0x4267e3
mov edx, esi
sub edx, 1
je 0x426844
sub edx, 1
je 0x426833
or cl, bl
mov dl, cl
xor esi, esi
jmp 0x426855
mov dl, cl
shr dl, 2
or dl, bl
shl cl, 6
mov esi, 3
jmp 0x426853
mov dl, cl
shr dl, 4
or dl, bl
shl cl, 4
mov esi, 2
mov bl, cl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
add edi, 1
cmp edi, dword [ebp + 0xc]
jb 0x4267a2
test eax, eax
je 0x42687e
movzx edx, bl
or edx, esi
mov dword [eax], edx
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
mov eax, dword [ebp - 4]
je 0x42688a
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4275a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x40
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
push ecx
add eax, 0x18
push eax
call fcn.0042d860
add esp, 0xc
pop ebp
ret
Function at 0x42adf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 8]
push eax
push str.PATH
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], 0
call edi
mov esi, eax
lea ecx, [esi + esi]
push ecx
call fcn.0042e047
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42ae8c
push esi
push ebx
push str.PATH
call edi
mov eax, ebx
mov esi, ebx
cmp word [esi], 0
je 0x42ae4f
lea ebx, [ebx]
cmp word [esi], 0x3b
je 0x42ae55
add esi, 2
cmp word [esi], 0
jne 0x42ae40
cmp word [esi], 0x3b
jne 0x42ae5c
mov word [esi], 0
jmp 0x42ae60
mov byte [ebp - 1], 1
mov edi, dword [ebp - 0xc]
push eax
mov ecx, edi
call fcn.0042ab80
mov ecx, edi
call fcn.0042adc0
test al, al
je 0x42ae83
cmp byte [ebp - 1], 0
jne 0x42ae83
lea eax, [esi + 2]
mov esi, eax
jmp 0x42ae34
push ebx
call fcn.0042df6a
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cbd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push ebx
call edi
test eax, eax
je 0x42cbef
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
cmp word [ebx], 0x5a4d
jne 0x42cbe7
push esi
mov esi, dword [ebx + 0x3c]
push 0xf8
add esi, ebx
push esi
call edi
test eax, eax
jne 0x42cc45
cmp dword [esi], 0x4550
jne 0x42cc45
mov eax, dword [esi + 0x80]
add eax, ebx
cmp eax, esi
je 0x42cc45
add eax, 0xc
cmp dword [eax], 0
je 0x42cc45
mov ecx, dword [ebp + 0xc]
mov esi, dword [eax + 4]
add esi, ebx
cmp dword [esi], 0
je 0x42cc3d
cmp dword [esi], ecx
je 0x42cc4e
add esi, 4
cmp dword [esi], 0
jne 0x42cc31
add eax, 0x14
cmp dword [eax], 0
jne 0x42cc27
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov dword [ebp + 8], 0x80
mov eax, dword [0x44b008]
cmp eax, 0x44b008
je 0x42cc81
test byte [eax + 0x3c], 1
je 0x42cc81
cmp byte [eax + 0x39], 5
jb 0x42cc81
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x446c94
push 0x26
push ecx
push edx
call fcn.004170b0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
push eax
push 0x80
push 4
push esi
call edi
mov eax, dword [ebp + 8]
cmp eax, 0x80
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esi]
mov dword [esi], ecx
je 0x42ccb0
lea edx, [ebp + 8]
push edx
push eax
push 4
push esi
call edi
mov eax, dword [0x44b008]
cmp eax, 0x44b008
je 0x42cce0
test byte [eax + 0x3c], 1
je 0x42cce0
cmp byte [eax + 0x39], 5
jb 0x42cce0
mov ecx, dword [esi]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
push ecx
push ebx
push 0x446c94
push 0x27
push edx
push eax
call fcn.0042c090
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x432db9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x451d18]
je 0x432ddf
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x432dcd
cmp esi, 0x17
jae 0x432f39
push 3
call fcn.004392c3
cmp eax, 1
pop ecx
je 0x432f03
push 3
call fcn.004392c3
test eax, eax
pop ecx
jne 0x432e12
cmp dword [0x4515b0], 1
je 0x432f03
cmp edi, 0xfc
je 0x432f39
push str.Runtime_Error__n_nProgram:
mov edi, 0x314
push edi
mov esi, 0x457070
push esi
call fcn.00437d0b
add esp, 0xc
test eax, eax
je 0x432e48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430c94
add esp, 0x14
mov byte [0x45718d], bl
push 0x104
mov ebx, 0x457089
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x432e8b
push str._program_name_unknown_
push 0x2fb
push ebx
call fcn.00437d0b
add esp, 0xc
test eax, eax
je 0x432e8b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00430c94
add esp, 0x14
push ebx
push edi
push esi
call fcn.00437b92
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x432ea9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430c94
add esp, 0x14
push 0x4476a0
push edi
push esi
call fcn.00437b92
add esp, 0xc
test eax, eax
je 0x432ec9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430c94
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x451d1c]
push edi
push esi
call fcn.00437b92
add esp, 0xc
test eax, eax
je 0x432eee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430c94
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.00439123
add esp, 0xc
jmp 0x432f39
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x432f39
cmp edi, 0xffffffff
je 0x432f39
mov edx, dword [esi*8 + 0x451d1c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432f22
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436639
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4575ac]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
jne 0x436688
call edi
mov esi, eax
cmp esi, ebx
je 0x43666e
mov dword [0x4575ac], 1
jmp 0x43668d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x436683
push 2
pop eax
mov dword [0x4575ac], eax
jmp 0x436688
mov eax, dword [0x4575ac]
cmp eax, 1
jne 0x4366e8
cmp esi, ebx
jne 0x4366a0
call edi
mov esi, eax
cmp esi, ebx
jne 0x4366a0
xor eax, eax
jmp 0x4367b7
cmp word [esi], bx
mov eax, esi
je 0x4366b5
inc eax
inc eax
cmp word [eax], bx
jne 0x4366a7
inc eax
inc eax
cmp word [eax], bx
jne 0x4366a7
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.0042e047
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4366d9
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4367b7
push dword [ebp - 4]
push esi
push edi
call fcn.0042d4e0
add esp, 0xc
jmp 0x4366cb
cmp eax, 2
je 0x4366f1
cmp eax, ebx
jne 0x436699
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x436699
cmp byte [esi], bl
je 0x436732
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x436699
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43671e
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x436704
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.00437582
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
jne 0x436756
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x436699
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x4367a8
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4367bc
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x436780
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x436792
sub eax, ecx
sar eax, 1
cmp byte [esi], bl
lea edi, [edi + eax*2 + 2]
jne 0x43675d
push dword [ebp - 8]
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0042df6a
pop ecx
push dword [ebp - 8]
jmp 0x43674b
Function at 0x4367ca
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4575b0]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x43680e
call esi
test eax, eax
je 0x4367f3
mov dword [0x4575b0], 1
jmp 0x436813
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43680a
mov dword [0x4575b0], 2
jmp 0x43681c
xor eax, eax
jmp 0x436872
cmp eax, 1
jne 0x436817
call esi
jmp 0x436872
cmp eax, 2
jne 0x43680a
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x43686f
push 2
push edi
call fcn.00437582
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x43686f
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x436866
mov eax, dword [ebp - 4]
jmp 0x436871
push dword [ebp - 4]
call fcn.0042df6a
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x438e20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x438e33
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x438e2f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x438e50
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x438e8f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x438e85
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x438e91
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x438e75
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x439123
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004306f2
xor ebx, ebx
cmp dword [0x4575e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4391fa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x439165
xor eax, eax
jmp 0x4392be
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43915e
push eax
call fcn.0043068c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4575e8], eax
call esi
push eax
call fcn.0043068c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4575ec], eax
call esi
push eax
call fcn.0043068c
mov dword [0x4575f0], eax
lea eax, [ebp - 8]
push eax
call fcn.00432b69
test eax, eax
pop ecx
pop ecx
je 0x4391c8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430c94
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4391fa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043068c
cmp eax, ebx
pop ecx
mov dword [0x4575f8], eax
je 0x4391fa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043068c
pop ecx
mov dword [0x4575f4], eax
mov eax, dword [0x4575f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x439273
cmp dword [0x4575f8], esi
je 0x439273
push eax
call fcn.004306fb
pop ecx
call eax
cmp eax, ebx
je 0x439240
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4575f8]
call fcn.004306fb
pop ecx
call eax
test eax, eax
je 0x439240
test byte [ebp - 0x18], 1
jne 0x439273
lea eax, [ebp - 0xc]
push eax
call fcn.00432ba5
test eax, eax
pop ecx
je 0x43925b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430c94
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43926a
or dword [ebp + 0x10], 0x200000
jmp 0x4392a4
or dword [ebp + 0x10], 0x40000
jmp 0x4392a4
mov eax, dword [0x4575ec]
cmp eax, esi
je 0x4392a4
push eax
call fcn.004306fb
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4392a4
mov eax, dword [0x4575f0]
cmp eax, esi
je 0x4392a4
push dword [ebp - 4]
push eax
call fcn.004306fb
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4575e8]
call fcn.004306fb
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret