joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024ed
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x49a0c0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x4fd4d8]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402554
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.0040342a
lea ecx, [esp + 0x1c]
call fcn.004020f3
cmp eax, dword [esp + 0x14]
je 0x40256c
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00404312
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402524
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042d331
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00404312
jmp 0x402556

Function at 0x402610
Capabilities:
Access peb ldr_data
Delete file
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4fd4d8], eax
push 0x27
mov ebx, 0x4fa9b0
mov edx, 0x547
push 0x49ab80
mov ecx, ebx
call fcn.00401f18
push 1
push 0x492e6c
call fcn.0040113f
mov edx, 0x8aafdc01
call fcn.004024ed
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00403172
push 0x64
pop esi
lea ecx, [esp + 0x10]
call fcn.004051cb
push eax
call fcn.00405199
pop ecx
sub esi, 1
jne 0x402674
lea ecx, [esp + 0x10]
call fcn.004030ff
push str.static.lib
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0xc]
push eax
push 0x40
push 0x4e4
push ebx
call edi
test eax, eax
je 0x4026b5
call fcn.004025ab
lea ecx, [esp + 0x10]
call fcn.004026c9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4029bf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
push edi
test eax, eax
jg 0x4029ea
jl 0x4029e1
test ebx, ebx
jne 0x4029ea
xor eax, eax
xor edx, edx
jmp 0x402aab
cmp dword [esi + 0x38], 0
je 0x4029ff
push eax
push ebx
push dword [ebp + 8]
call fcn.00402fae
jmp 0x402aab
mov eax, dword [esi + 0x1c]
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x402a43
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x402a43
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.004044ce
mov ecx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x1c], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x402a4a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x4c], 0
je 0x402aa1
mov ecx, esi
call fcn.00403f43
mov ecx, dword [esp + 0x10]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x402a8c
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0045782d
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x402aa1
jmp 0x402a5d
test edx, edx
je 0x402aa1
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0045782d
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41c931
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x41c954
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41c942
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42ca9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00459db3
mov eax, dword [eax + 0x14]
test eax, eax
je 0x42cadf
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42cadf
sub eax, 1
je 0x42cada
sub eax, 1
je 0x42cad6
xor eax, eax
leave
ret
push 3
jmp 0x42cae1
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42e6d6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42e715
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e715
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e715
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42e715
cmp dword [ecx + 0x74], 0xe
jbe 0x42e715
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46c30d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48ef64
push 0x48ef5c
push str.FlsAlloc
push 0x1e
call fcn.0046bfdd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c341
push dword [ebp + 8]
mov ecx, esi
call dword [0x48916c]
call esi
jmp 0x46c347
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46c38b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48ef74
push 0x48ef6c
push str.FlsGetValue
push 0x20
call fcn.0046bfdd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c3c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x48916c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46f6c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046f2ab

Function at 0x46fbf2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042e850
mov eax, dword [0x49a0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00469882
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46fc34
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46fd90
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00484f10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4fd078]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00471a10
mov ecx, dword [esi*4 + 0x4fd078]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46fd89
cmp eax, dword [edi + ecx + 0x24]
jne 0x46fd89
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fd89
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00471a10
add esp, 0x14
test edx, edx
jl 0x46fd89
jg 0x46fcff
test eax, eax
jb 0x46fd89
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46fd89
jl 0x46fd19
cmp dword [ebp - 0x1008], eax
ja 0x46fd89
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46fd37
test ebx, ebx
je 0x46fd70
cmp ecx, edi
jae 0x46fd70
mov al, byte [ecx]
cmp al, 0xd
jne 0x46fd51
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46fd5d
cmp byte [ecx + 1], 0xa
jne 0x46fd5d
inc ecx
jmp 0x46fd5d
movzx eax, al
movsx eax, byte [eax + 0x49a3a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46fd37
cmp edx, ebx
jne 0x46fd37
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46fd8e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042d331
leave
ret
Function at 0x470b99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4fd078]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x470bd9
cmp byte [ebx], 0xa
jne 0x470bd9
or byte [eax + edi + 0x28], 4
jmp 0x470bde
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x470cdc
mov al, byte [edx]
cmp al, 0x1a
je 0x470cbe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x470c0d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x470c32
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x470c3c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x470bef
jmp 0x470cdc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470cb9
cmp dword [ebp - 0xc], 0
je 0x470cb9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4fd078]
test byte [eax + edi + 0x28], 0x48
je 0x470c93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x470c7e
mov byte [esi], dl
jmp 0x470c8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4fd078]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x470cdc
cmp byte [ebp - 1], 0xa
jne 0x470ca2
cmp esi, ebx
jne 0x470ca2
mov byte [esi], 0xa
jmp 0x470cdb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00471a2e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x470cdc
mov byte [esi], 0xd
jmp 0x470cdb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4fd078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x470cd8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470cdc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x470ce5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4fd078]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x470d28
cmp word [esi], dx
jne 0x470d28
or byte [edi + eax + 0x28], 4
jmp 0x470d2d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x470e80
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x470e60
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x470d6f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x470da5
cmp eax, edx
jae 0x470db1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x470d47
jmp 0x470e80
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470e5c
cmp dword [ebp - 0x14], 0
je 0x470e5c
mov eax, dword [ebx*4 + 0x4fd078]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x470e34
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x470dfd
mov word [esi], cx
jmp 0x470e30
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4fd078]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4fd078]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4fd078]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x470e80
pop ebx
cmp word [ebp - 4], bx
jne 0x470e45
cmp esi, dword [ebp + 0xc]
jne 0x470e45
mov word [esi], bx
jmp 0x470e7d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00471a2e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x470e80
push 0xd
jmp 0x470e79
mov ecx, dword [ebx*4 + 0x4fd078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x470e77
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470e80
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x474d89
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474c5d
Function at 0x4755c6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x49a0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x475611
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004759a0
test al, al
jne 0x47560b
sub edx, 2
cmp edx, edi
jne 0x4755f1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x475633
lea eax, [edi + 2]
cmp edx, eax
je 0x475633
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0047528d
add esp, 0x10
jmp 0x47572d
push esi
lea ecx, [ebp - 0x255]
call fcn.004759a0
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x475676
push dword [ebp - 0x25c]
jmp 0x475623
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4756b3
cmp word [ebp - 0x226], 0
je 0x4756d4
cmp word [ebp - 0x226], ax
jne 0x4756b3
cmp word [ebp - 0x224], 0
je 0x4756d4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0047528d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x475720
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x47568d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x475708
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x47572d
push 0x474dac
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00481520
add esp, 0x10
jmp 0x4756fd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d331
leave
ret
Function at 0x476b1a
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 0x476bb7
push ebx
push esi
call fcn.00476ad6
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.00473bbd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x476b64
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x476bb6
push edi
push eax
call fcn.0046ddc1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x476b84
call fcn.0046b98e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x476bb5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00473bbd
add esp, 0x20
test eax, eax
jne 0x476ba3
push edi
call fcn.0046b98e
jmp 0x476bab
push ebx
call fcn.0046b98e
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 0x476bba
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x476bcb
pop esi
ret
push ebx
push edi
push esi
call fcn.00476ad6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046ddc1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x476bf3
push ebx
push esi
push edi
call fcn.0042ef90
add esp, 0xc
push 0
call fcn.0046b98e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4774d4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476e66
Function at 0x48313d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00482f5d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4832b5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4832b5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x483264
jg 0x483196
test eax, eax
je 0x48325a
push 1
push 0x1000
call fcn.0046a9ee
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4831bc
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x483251
push 0x8000
push ebx
call fcn.00465815
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4831e8
jg 0x4831e3
cmp ecx, 0x1000
jb 0x4831e8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046d686
add esp, 0x10
cmp eax, 0xffffffff
je 0x48322d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4831e3
jl 0x483214
test ecx, ecx
jne 0x4831d5
push dword [ebp - 0xc]
push ebx
call fcn.00465815
push esi
call fcn.0046b98e
add esp, 0xc
xor edi, edi
jmp 0x4832c6
cmp byte [edi + 0x24], 0
je 0x483244
cmp dword [edi + 0x20], 5
jne 0x483244
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x48324f
mov edi, dword [edi + 0x18]
jmp 0x483251
xor edi, edi
push esi
call fcn.0046b98e
pop ecx
jmp 0x4832c6
test ecx, ecx
jg 0x483226
jl 0x483264
test eax, eax
jae 0x483226
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00471a2e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x483287
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x483226
jmp 0x4832be
push ebx
call fcn.00477bc2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x483226
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4832c6
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4832c3
mov edi, dword [edi + 0x18]
jmp 0x4832c6
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00471a2e
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x484cd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x484cfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x484cfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403831
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.00405ff9
push 0x4062f0
push 0x404ca4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x408a6c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x408a68], ecx
shl ecx, 8
add ecx, edx
mov dword [0x408a64], ecx
shr eax, 0x10
mov dword [0x408a60], eax
xor esi, esi
push esi
call fcn.00403a63
pop ecx
test eax, eax
jne 0x40389d
push 0x1c
call fcn.0040394c
pop ecx
mov dword [ebp - 4], esi
call fcn.004049fe
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408f54], eax
call fcn.004048cc
mov dword [0x408a40], eax
call fcn.0040467f
call fcn.004045c6
call fcn.004042e8
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040456e
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x4038ea
movzx eax, word [ebp - 0x2c]
jmp 0x4038ed
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00404315
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.004043ea
pop ecx
pop ecx
ret

Function at 0x404db5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404dd7
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404dc8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f05
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404edf
test eax, eax
jne 0x404e08
cmp dword [0x4085d4], 1
je 0x404edf
cmp edx, 0xfc
je 0x404f05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e3f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404e82
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.004056f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.004032d0
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405667
add esp, 0x2c
pop edi
jmp 0x404f05
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x66fe0c23
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x14b95a58
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x484ce5
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x484a08
sub eax, eax
dec edi
call fcn.00484d1d
sub edi, eax
add edi, 1
xor dword [esi], edx
sub edi, 0x4ddb3a49
add esi, 2
or edi, edi
cmp esi, ecx
jl fcn.00484ce5
add edi, eax
mov edi, 0xa76d2734
sub eax, 0xa13e3035
ret