joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429430
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x47579a
call fcn.0043ca14
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi], 0x47e568
lea eax, [ebp - 0x10]
lea ebx, [esi + 0x3c]
push eax
mov ecx, ebx
mov dword [ebp - 4], 4
call fcn.00429868
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.0042987f
jmp 0x429478
lea ecx, [ebp - 0x10]
call fcn.00429892
push dword [eax + 4]
mov ecx, esi
call fcn.00428cbe
lea ecx, [ebp - 0x10]
call fcn.00429897
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.004297c5
test al, al
jne 0x42945e
push edi
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.00429199
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, dword [ebp - 0x14]
cmp eax, 0x1388
jae 0x4294bc
mov ecx, ebx
call fcn.004297ba
test al, al
je 0x429494
mov ecx, esi
call fcn.00428db6
push 0x7d0
push esi
call fcn.0042ca8b
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00429868
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0042987f
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004297c5
pop edi
jmp 0x42952a
lea ecx, [ebp - 0x10]
call fcn.00429892
mov eax, dword [eax + 4]
test eax, eax
je 0x429516
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
lea ecx, [ebp - 0x10]
call fcn.00429897
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004297c5
test al, al
jne 0x4294ff
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
call fcn.0042b8f0
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0042a2ff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0042ad77
lea ecx, [esi + 8]
mov byte [ebp - 4], 0
call fcn.0042ad7c
mov ecx, esi
call fcn.00428b38
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42b98c
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x47597c
call fcn.0043ca14
sub esp, 0x198
mov eax, dword [0x498f70]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x1a4], esi
call fcn.0042addb
xor eax, eax
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], eax
mov dword [esi], 0x47e96c
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
call fcn.0042c699
push 0x40
pop ecx
xor eax, eax
lea edi, [esi + 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, esi
call fcn.0042b396
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.0043cc0e
leave
ret
Function at 0x42c6e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
jle 0x42c748
movzx eax, word [esp + 0x10]
movzx ecx, byte [esp + 0x14]
push ebx
lea eax, [eax + eax*4]
shl eax, 1
add ecx, eax
push ebp
push edi
lea edi, [ecx + ecx*4]
movzx ecx, byte [esp + 0x24]
add ecx, eax
lea ebp, [ecx + ecx*4]
mov ecx, dword [esp + 0x14]
shl edi, 3
shl ebp, 3
xor edx, edx
mov eax, esi
mov ebx, 0x28
div ebx
mov bl, byte [ecx]
mov al, byte [edx + edi + 0x47ee00]
xor bl, al
mov byte [ecx], bl
mov dl, byte [edx + ebp + 0x47ee00]
mov al, bl
xor dl, al
mov eax, dword [esp + 0x18]
mov byte [ecx], dl
inc ecx
inc esi
cmp esi, eax
jl 0x42c716
pop edi
pop ebp
pop ebx
pop esi
ret 0x14

Function at 0x42c8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jle 0x42c94b
movzx eax, word [esp + 0x14]
movzx ecx, byte [esp + 0x18]
lea eax, [eax + eax*4]
push ebx
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x10]
push edi
lea edi, [eax + eax*4]
shl edi, 3
jmp 0x42c920
xor edx, edx
mov eax, esi
mov ebx, 0x28
div ebx
mov al, byte [ecx]
mov dl, byte [edx + edi + 0x47ee00]
xor dl, al
mov al, dl
sar al, 7
and al, 1
shl dl, 1
or al, dl
mov byte [ecx], al
inc ecx
inc esi
cmp esi, ebp
jl 0x42c920
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x42e030
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e056
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x42e0a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42e0b3
xor al, al
ret
shr al, 4
and al, 1
ret
Function at 0x430653
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4306a6
call fcn.0047049f
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4306a6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x43069c
xor eax, eax
jmp 0x4307bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4306d6
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4306d6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4307bc
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x430703
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041b990
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4307bc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43074c
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x43074c
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x430746
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041b990
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4307ac
and dword [ebp + 0xc], 0
jmp 0x4307ac
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4307ac
push 0xc
call fcn.00460d5a
mov esi, eax
test esi, esi
pop ecx
je 0x43078e
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x430790
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4307a7
push dword [ebp - 8]
call fcn.0046079b
jmp 0x4307ac
call fcn.00460772
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x430711
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43939d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00439360
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x439438
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x49eb38]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x439438
cmp eax, 1
je 0x439459
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x439438
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x439405
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x439434
xor eax, eax
inc eax
jmp 0x439478
cmp edi, eax
jae 0x43943c
xor eax, eax
jmp 0x439478
cmp eax, esi
jae 0x439443
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x49eb38]
jmp 0x43945c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b15f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x43b17c
call fcn.0043c350
mov dword [eax], 0x16
xor eax, eax
jmp 0x43b1e6
push esi
push 0x8c
push 1
call fcn.0043dd66
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x43b1d1
push esi
call fcn.0043e6f1
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x43b1af
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x43b0ca
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x43b1e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0043965e
test ebx, ebx
pop ecx
je 0x43b1e3
push ebx
call fcn.0043c362
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b51e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x483768
call fcn.0043cd6c
push 8
call fcn.0043ee08
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x49eb78], esi
jne 0x43b552
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x49eb74], esi
mov al, byte [ebp + 0x10]
mov byte [0x49eb70], al
cmp dword [ebp + 0xc], edi
jne 0x43b59c
cmp dword [0x4a0570], edi
je 0x43b58c
mov eax, dword [0x4a056c]
sub eax, 4
mov dword [0x4a056c], eax
cmp eax, dword [0x4a0570]
jb 0x43b58c
mov eax, dword [eax]
cmp eax, edi
je 0x43b56d
call eax
jmp 0x43b56d
push 0x4940bc
mov eax, 0x4940b4
call fcn.0043b49c
pop ecx
push 0x4940c8
mov eax, 0x4940c0
call fcn.0043b49c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x43b5cd
cmp dword [ebp + 0x10], edi
jne 0x43b5db
mov dword [0x49eb78], esi
push dword [ebp + 8]
call fcn.0043b45a
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x43b5da
push 8
call fcn.0043ed53
pop ecx
ret
call fcn.0043cda7
ret
Function at 0x43b66a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x483778
call fcn.0043cd6c
mov edi, 0x94
mov eax, edi
call fcn.00439360
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x49eb38], ecx
mov eax, dword [esi + 4]
mov dword [0x49eb44], eax
mov edx, dword [esi + 8]
mov dword [0x49eb48], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x49eb3c], esi
cmp ecx, 2
je 0x43b6ca
or esi, 0x8000
mov dword [0x49eb3c], esi
shl eax, 8
add eax, edx
mov dword [0x49eb40], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43b705
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b705
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43b71d
cmp eax, 0x20b
je 0x43b70a
mov dword [ebp - 0x1c], esi
jmp 0x43b731
cmp dword [ecx + 0x84], 0xe
jbe 0x43b705
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43b72b
cmp dword [ecx + 0x74], 0xe
jbe 0x43b705
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0043ee53
pop ecx
test eax, eax
jne 0x43b745
push 0x1c
call fcn.0043b646
pop ecx
call fcn.0043e8eb
test eax, eax
jne 0x43b756
push 0x10
call fcn.0043b646
pop ecx
call fcn.004435ae
mov dword [ebp - 4], esi
call fcn.00443c3a
test eax, eax
jge 0x43b76f
push 0x1b
call fcn.0043b621
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4a0564], eax
call fcn.00443b18
mov dword [0x49eb7c], eax
call fcn.00443a76
test eax, eax
jge 0x43b795
push 8
call fcn.0043b621
pop ecx
call fcn.00443843
test eax, eax
jge 0x43b7a6
push 9
call fcn.0043b621
pop ecx
push 1
call fcn.0043b4b4
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43b7bc
push eax
call fcn.0043b621
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004437e6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43b7dd
movzx eax, word [ebp - 0x40]
jmp 0x43b7e0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0044c650
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43b7fe
push edi
call fcn.0043b5e1
call fcn.0043b603
jmp 0x43b830
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043cda7
ret
Function at 0x43c70c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x43c72d
lea eax, [ebp - 4]
push eax
call fcn.0043b060
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
lea eax, [edi + 4]
push eax
call fcn.0043c1d0
test eax, eax
pop ecx
jne 0x43c74e
call fcn.0043c350
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x43c84f
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x43c840
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x43c840
push edi
call fcn.0043c1d0
test eax, eax
pop ecx
je 0x43c840
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x43c840
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x43c840
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call fcn.00444fd6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x43c840
xor eax, eax
jmp 0x43c84e
call fcn.0043c350
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret
Function at 0x43c889
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x483798
call fcn.0043cd6c
mov eax, dword [0x498f70]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x43c996
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x43c947
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00439360
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x43c934
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x43c996
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x43c996
mov al, byte [edi]
cmp al, 0x5c
je 0x43c955
cmp al, 0x2f
jne 0x43c95a
cmp al, byte [edi + 1]
je 0x43c990
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.004455e6
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x43c996
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043c362
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x43c9b2
push edi
call fcn.0043965e
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0043cc0e
call fcn.0043cda7
ret

Function at 0x43c9cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43c9ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043c362
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43ca0f
test byte [esp + 8], 2
je 0x43ca0f
call fcn.0043c350
mov dword [eax], 0xd
call fcn.0043c359
mov dword [eax], 5
jmp 0x43c9e8
xor eax, eax
ret
Function at 0x43ea8c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43eaba
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43eac1
cmp ebx, dword [eax + 4]
jae 0x43eac1
xor eax, eax
jmp 0x43ecb1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43ead2
xor eax, eax
inc eax
jmp 0x43ecb0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43eae8
cmp ecx, edx
jae 0x43ec2d
cmp dword [eax + 4], 0
je 0x43eaf1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43ead9
cmp dword [ebp + 8], 0
je 0x43eb13
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43ec2d
cmp eax, esi
jae 0x43ec2d
mov eax, dword [0x49eba8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43eb38
cmp dword [esi*4 + 0x49ebb0], edi
je 0x43ec31
inc esi
cmp esi, eax
jl 0x43eb26
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43ecad
cmp dword [ebp - 8], 0x1000000
jne 0x43ecad
test byte [ebp - 0xc], 0xcc
je 0x43ebb6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43ecad
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43ecad
cmp word [eax + 0x18], 0x10b
jne 0x43ecad
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43ecad
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43ebb6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43ebb6
test byte [ecx + 0x27], 0x80
jne 0x43ec2d
push 1
push 0x49ebf0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43eaca
mov ecx, dword [0x49eba8]
test ecx, ecx
mov edx, ecx
jle 0x43ebea
lea eax, [ecx*4 + 0x49ebac]
cmp dword [eax], edi
je 0x43ebea
dec edx
sub eax, 4
test edx, edx
jg 0x43ebde
test edx, edx
jne 0x43ec1b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43ebf7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43ec0f
lea eax, [edx*4 + 0x49ebb0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43ebfd
cmp ecx, 0x10
jge 0x43ec1b
inc ecx
mov dword [0x49eba8], ecx
push 0
push 0x49ebf0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43eaca
xor eax, eax
jmp 0x43ecb0
test esi, esi
jle 0x43eaca
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x49ebf0
call ebx
test eax, eax
jne 0x43eaca
cmp dword [esi*4 + 0x49ebb0], edi
je 0x43ec87
mov eax, dword [0x49eba8]
lea esi, [eax - 1]
test esi, esi
jl 0x43ec75
cmp dword [esi*4 + 0x49ebb0], edi
je 0x43ec71
dec esi
jns 0x43ec65
test esi, esi
jge 0x43ec85
cmp eax, 0x10
jge 0x43ec80
inc eax
mov dword [0x49eba8], eax
lea esi, [eax - 1]
jmp 0x43ec87
je 0x43ec9f
xor ecx, ecx
test esi, esi
jl 0x43ec9f
lea eax, [ecx*4 + 0x49ebb0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43ec8d
push 0
push 0x49ebf0
call ebx
jmp 0x43eaca
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43fafb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x498f70]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x43fb2c
xor eax, eax
jmp 0x43fcb5
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x49f1e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43fb68
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00446166
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43fc43
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x43fc81
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x43fbcc
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43fbbd
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x43fb9d
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43fc0c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x43fc15
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x43fb8e
jmp 0x43fc17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x43fcb0
cmp dword [ebp - 0x6c], edi
je 0x43fc81
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x43fc76
call fcn.0043c350
mov dword [eax], 9
call fcn.0043c359
mov dword [eax], esi
jmp 0x43fcab
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43fc6b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x43fc17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x43fc17
push dword [ebp - 0x6c]
call fcn.0043c362
pop ecx
jmp 0x43fcab
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43fc99
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x43fc99
xor eax, eax
jmp 0x43fcb3
call fcn.0043c350
mov dword [eax], 0x1c
call fcn.0043c359
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x43fcb3
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0043cc0e
add ebp, 0x3a0
leave
ret