joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4525e1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4525ef
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x4526ca
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x4854e8]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4854e8]
xor esi, eax
inc edx
mov eax, esi
movzx ebx, byte [edx]
and eax, ecx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x4854e8]
xor eax, esi
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4854e8]
xor esi, eax
inc edx
mov eax, esi
movzx ebx, byte [edx]
and eax, ecx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x4854e8]
xor eax, esi
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4854e8]
xor esi, eax
inc edx
mov eax, esi
movzx ebx, byte [edx]
and eax, ecx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x4854e8]
xor eax, esi
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4854e8]
xor eax, esi
inc edx
dec edi
jne 0x45260c
pop ebx
cmp dword [ebp + 0x10], 0
je 0x4526eb
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4854e8]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x4526d0
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x455fde
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x456008
test ecx, ecx
jne 0x456012
test edx, edx
jne 0x456012
mov eax, edi
jmp 0x45607e
cmp eax, 0xffffffff
jne 0x456012
push 0xfffffffffffffffe
pop eax
jmp 0x45607e
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x45607e
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0043a200
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x456043
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x456062
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x4560d9
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.004560de
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x4560c5
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x4560d9
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x455fea
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45d510
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x45d5b0
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x45d562
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4953b4]
xor eax, edx
inc esi
cmp esi, edi
jl 0x45d543
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x45d58b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4953b4]
xor eax, edx
inc esi
cmp esi, edi
jl 0x45d56e
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x4086f9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
call fcn.0040984c
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x408720
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408722
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00409a01
mov al, bl
pop ebx
pop ebp
ret
Function at 0x4095e2
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0x1c
mov eax, 0x41288e
call fcn.0040ff71
push str.Hook_started..._Timer_started
lea ecx, [ebp - 0x28]
call fcn.00409add
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408294
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00409a01
push ecx
mov ecx, 0x41c8e8
call fcn.00408c50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x4094bb
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
xor ecx, ecx
mov dword [0x41c868], eax
test eax, eax
sete al
call fcn.0040ff3a
ret

Function at 0x4096bc
Capabilities:
Hide graphical window

Disassembly:
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
push str.ConsoleWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x40b0c4
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x4129f5
call fcn.0040ffa5
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x40b1e7
cmp byte [edi + 0x3d], bl
je 0x40b1e7
call fcn.00407d01
mov esi, eax
mov eax, dword [edi]
push esi
call dword [eax + 0xc]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.00407ce4
test al, al
je 0x40b10f
xor al, al
jmp 0x40b1e9
push ecx
push ecx
lea ecx, [ebp - 0x38]
call fcn.00409abd
mov dword [ebp - 4], ebx
lea esi, [edi + 0x40]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040992f
mov ecx, eax
call fcn.00409811
lea ecx, [ebp - 0x38]
mov edx, eax
call fcn.00409844
add edx, eax
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.0040992f
mov ecx, eax
call fcn.00409811
mov ecx, dword [edi + 0x38]
push eax
push esi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x40b170
sub eax, 1
je 0x40b173
dec eax
sub eax, 1
jne 0x40b1db
inc eax
jmp 0x40b1d9
mov byte [edi + 0x3d], bl
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040992f
mov ecx, eax
call fcn.00409811
mov esi, dword [ebp - 0x18]
sub esi, eax
je 0x40b1b4
push dword [edi + 0x4c]
lea eax, [ebp - 0x40]
push esi
push 1
push eax
lea ecx, [ebp - 0x38]
call fcn.0040992f
mov ecx, eax
call fcn.00409811
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40b1d7
cmp byte [edi + 0x3d], 0
je 0x40b1d5
test esi, esi
lea esi, [edi + 0x40]
jne 0x40b11f
push ebx
push 8
lea ecx, [ebp - 0x38]
call fcn.0040ae45
jmp 0x40b11c
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x38]
call fcn.00409a01
mov al, bl
jmp 0x40b1e9
mov al, 1
call fcn.0040ff4f
ret

Function at 0x40ec55
Capabilities:
Terminate process

Disassembly:
push 0x34
mov eax, 0x4127ae
call fcn.0040ff71
mov esi, ecx
mov eax, dword [esi]
push 0xea60
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
push dword [esi + 4]
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esi + 4]
cmp dword [eax], 0x103
jne 0x4092e6
mov eax, dword [esi]
push 0x64
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.0040c0eb
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push eax
mov edx, str._From_SendMail__Return_code:
call fcn.0040c847
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00408294
lea ecx, [ebp - 0x28]
call fcn.00409a01
lea ecx, [ebp - 0x40]
call fcn.00409a01
call fcn.0040ff3a
ret
call fcn.0040b3d0
mov ecx, eax
jmp 0x40ecc4
call fcn.0040b3d0
mov ecx, eax
jmp 0x40ed83
call fcn.0040b3d0
mov ecx, eax
jmp 0x4092a2
Function at 0x55ca57
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
test eax, 0x80000000
je 0x55ca74
mov edx, eax
and edx, 0x7fffffff
mov dword [ebp - 0xc], edx
jmp 0x55ca79
xor edx, edx
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
and dword [ebp - 4], 0
mov eax, dword [ebx + 0x3c]
push edi
mov esi, dword [eax + ebx + 0x78]
lea eax, [eax + ebx + 0x18]
add esi, ebx
mov eax, dword [eax + 0x64]
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24]
add edi, ebx
add ecx, ebx
add eax, ebx
test edx, edx
mov dword [ebp - 0x10], eax
je 0x55cab9
mov eax, dword [esi + 0x10]
imul eax, eax, 0x3fffffff
add eax, edx
jmp 0x55caf7
and dword [ebp + 8], 0
cmp dword [esi + 0x18], 0
jbe 0x55caff
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.0055cb25
pop ecx
test eax, eax
pop ecx
jne 0x55caed
inc dword [ebp + 8]
add dword [ebp - 8], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x55cac6
jmp 0x55caff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
mov edi, dword [edi + eax*4]
add edi, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], 0
je 0x55cb1d
cmp dword [ebp - 4], esi
jbe 0x55cb1d
mov eax, dword [ebp - 0x14]
add eax, esi
cmp dword [ebp - 4], eax
jae 0x55cb1d
push dword [ebp - 0xc]
push ebx
call dword [ebp + 0x10]
jmp 0x55cb20
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x55cb4f
Capabilities:
Encode data using xor

Disassembly:
push ecx
push eax
push esi
push edi
mov ecx, edi
sub ecx, eax
mov esi, eax
mov edi, esi
lodsb al, byte [esi]
xor al, 0x4c
stosb byte es:[edi], al
loop 0x55cb5b
pop edi
pop esi
pop eax
pop ecx
ret

Function at 0x55cb66
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x410d60
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4170a0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00410640
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x410d9a
mov eax, dword [ebp - 0x220]
push eax
call fcn.004037e1
add esp, 4
test eax, eax
jne 0x410dad
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x410eaa
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x220]
push eax
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x214]
push ecx
call fcn.0040267a
add esp, 0xc
mov dword [ebp - 0x218], 0
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00403800
add esp, 0xc
mov dword [ebp - 0x21c], 0x206
mov dword [ebp - 0x224], 1
lea ecx, [ebp - 0x218]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x214]
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410e93
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0
push 0x414800
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410e86
lea ecx, [ebp - 0x210]
push ecx
push str._sTemp
lea edx, [ebp + 0xc]
push edx
call fcn.0040267a
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.004037e1
add esp, 4
jmp 0x410eaa
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
je 0x410ea8
mov edx, dword [ebp - 0x220]
push edx
call fcn.00401f72
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403653
mov esp, ebp
pop ebp
ret
Function at 0x403fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00403be0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404002
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x43b154]
call dword [ebp - 8]
jmp 0x40400c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x414dd0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x414dee
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp + 8]
push edx
call fcn.00414ed0
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x425530
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.00406940
lea ecx, [ebp - 4]
call fcn.00425500
movzx eax, al
test eax, eax
jne 0x42556d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.00425440
mov eax, dword [ebp - 0x18]
jmp 0x425695
lea ecx, [ebp - 4]
call fcn.00406980
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004254c0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.00406980
push eax
push 0
push 0
call fcn.00425380
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4255d3
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.00425440
mov eax, dword [ebp - 0x20]
jmp 0x425695
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00417a50
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00402fd0
lea ecx, [ebp - 8]
call fcn.00403010
movzx edx, al
test edx, edx
jne 0x42561c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.00402ff0
lea ecx, [ebp - 4]
call fcn.00425440
mov eax, dword [ebp - 0x24]
jmp 0x425695
lea ecx, [ebp - 8]
call fcn.00403050
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.00406980
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.00425380
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x425677
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.00402ff0
lea ecx, [ebp - 4]
call fcn.00425440
mov eax, dword [ebp - 0x34]
jmp 0x425695
lea ecx, [ebp - 8]
call fcn.004069a0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.00402ff0
lea ecx, [ebp - 4]
call fcn.00425440
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x42b630
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00439e40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x44d5d0]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x42b808
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x42b757
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x42b757
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x42b735
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x42b6b9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42b7c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x42b828
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x42b803
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x42b828
jmp 0x42b692
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017a0
mov esp, ebp
pop ebp
ret
Function at 0x42b840
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00439e40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x44d5d0]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x42ba2b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x42b976
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x42b976
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x42b952
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x42b8c9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42b9e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x42ba4b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x42ba26
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x42ba4b
jmp 0x42b8a2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017a0
mov esp, ebp
pop ebp
ret
Function at 0x432150
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.004232d0
lea ecx, [ebp - 0x34]
call fcn.004232d0
call fcn.00423500
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00422a30
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4321a3
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.00423370
lea ecx, [ebp - 0x4c]
call fcn.00423370
mov eax, dword [ebp - 8]
jmp 0x432218
call fcn.00423500
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00422a30
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4321de
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.00423370
lea ecx, [ebp - 0x4c]
call fcn.00423370
mov eax, dword [ebp - 0x10]
jmp 0x432218
lea ecx, [ebp - 0x34]
call fcn.004237f0
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.004237f0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
call fcn.00423370
lea ecx, [ebp - 0x4c]
call fcn.00423370
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret