joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b98e7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6317e8]
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 0x5b9932
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005b9c7a
test al, al
jne 0x5b992c
sub edx, 2
cmp edx, edi
jne 0x5b9912
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5b9954
lea eax, [edi + 2]
cmp edx, eax
je 0x5b9954
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005b95ae
add esp, 0x10
jmp 0x5b9a4e
push esi
lea ecx, [ebp - 0x255]
call fcn.005b9c7a
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 0x5b9997
push dword [ebp - 0x25c]
jmp 0x5b9944
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 0x5b99d4
cmp word [ebp - 0x226], 0
je 0x5b99f5
cmp word [ebp - 0x226], ax
jne 0x5b99d4
cmp word [ebp - 0x224], 0
je 0x5b99f5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005b95ae
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5b9a41
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5b99ae
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5b9a29
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5b9a4e
push 0x5b91b0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0059ca20
add esp, 0x10
jmp 0x5b9a1e
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.0055ee88
leave
ret
Function at 0x5bad63
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 0x5bae00
push ebx
push esi
call fcn.005bad1f
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.005b40dd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5badad
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5badff
push edi
push eax
call fcn.005adefd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5badcd
call fcn.005ad0ad
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5badfe
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005b40dd
add esp, 0x20
test eax, eax
jne 0x5badec
push edi
call fcn.005ad0ad
jmp 0x5badf4
push ebx
call fcn.005ad0ad
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 0x5bae03
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5bae14
pop esi
ret
push ebx
push edi
push esi
call fcn.005bad1f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005adefd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5bae3c
push ebx
push esi
push edi
call fcn.00561300
add esp, 0xc
push 0
call fcn.005ad0ad
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5bb72b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005bb0b1

Function at 0x5bbc16
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005bbaea

Function at 0x5be40c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005acdaf
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5be47b
cmp esi, dword [ebp - 4]
je 0x5be476
cmp dword [ebp + 0xc], 0
je 0x5be476
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5be453
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005bdf5e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5be47d
xor eax, eax
inc eax
jmp 0x5be47d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5be4e2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6317e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005acdaf
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005acdaf
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5be559
cmp word [ecx], dx
je 0x5be559
mov eax, dword [0x6013fc]
push edi
dec eax
push eax
push 0x6012e8
call fcn.005be481
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5be5cc
cmp word [eax], dx
je 0x5be5cc
mov eax, dword [edi]
test eax, eax
je 0x5be57d
cmp word [eax], dx
je 0x5be57d
lea eax, [ebp - 0x10]
push eax
call fcn.005bde64
jmp 0x5be586
lea eax, [ebp - 0x10]
push eax
call fcn.005bdeff
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5be5f6
mov eax, dword [0x6012e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x600fd8
call fcn.005be481
add esp, 0xc
test al, al
je 0x5be5f6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5be5c1
cmp word [eax], di
je 0x5be5c1
lea eax, [ebp - 0x10]
push eax
call fcn.005bde64
pop ecx
jmp 0x5be5f8
lea eax, [ebp - 0x10]
push eax
call fcn.005bdeff
jmp 0x5be5be
mov eax, dword [edi]
test eax, eax
je 0x5be5e3
cmp word [eax], dx
je 0x5be5e3
lea eax, [ebp - 0x10]
push eax
call fcn.005bddfb
pop ecx
jmp 0x5be5f6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5be6c1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005be306
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5be6c1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5be6c1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5be6c1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5be64e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005b0367
test ebx, ebx
je 0x5be6bc
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005b0367
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5be6c1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5be6c1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005c67c2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5be6c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055ee88
leave
ret
Function at 0x5c6c99
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005c6abd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5c6e08
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5c6e08
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5c6dbd
jg 0x5c6cf5
test eax, eax
je 0x5c6db3
push 1
push 0x1000
call fcn.005af60d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5c6d18
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5c6daa
push 0x8000
push ebx
call fcn.005aa235
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5c6d41
jg 0x5c6d3c
cmp ecx, 0x1000
jb 0x5c6d41
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005b1cd9
add esp, 0x10
cmp eax, 0xffffffff
je 0x5c6d86
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 0x5c6d3c
jl 0x5c6d6d
test ecx, ecx
jne 0x5c6d2e
push dword [ebp - 0xc]
push ebx
call fcn.005aa235
push esi
call fcn.005ad0ad
add esp, 0xc
xor ebx, ebx
jmp 0x5c6e16
cmp byte [edi + 0x24], 0
je 0x5c6d9d
cmp dword [edi + 0x20], 5
jne 0x5c6d9d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5c6da8
mov ebx, dword [edi + 0x18]
jmp 0x5c6daa
xor ebx, ebx
push esi
call fcn.005ad0ad
pop ecx
jmp 0x5c6e16
test ecx, ecx
jg 0x5c6d7f
jl 0x5c6dbd
test eax, eax
jae 0x5c6d7f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005b3e09
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5c6ddd
cmp byte [edi + 0x1c], 0
je 0x5c6d7f
jmp 0x5c6e0e
push ebx
call fcn.005bc048
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5c6d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5c6e16
cmp byte [edi + 0x1c], 0
je 0x5c6e13
mov ebx, dword [edi + 0x18]
jmp 0x5c6e16
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005b3e09
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5c7fc0
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c70f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40c71e
pop dword [ebp - 0x38]
mov eax, 0xbe9db469
add eax, 0x41a312b5
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x39598eef
add dword [ebp - 0x48], 0x14f8b65c
mov dword [ebp - 0x44], 0x9ceeafc3
add dword [ebp - 0x44], 0x95449c82
mov dword [ebp - 0x40], 0x6619582c
sub dword [ebp - 0x40], 0x19cd13fe
mov dword [ebp - 0x3c], 0x6b99df2e
sub dword [ebp - 0x3c], 0x6b99df2e
lea eax, [ebp - 0x48]
push eax
mov eax, 0x24a051a3
add eax, 0xdba1ded1
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xd423f47e
sub dword [ebp - 0x48], 0x5fb18b28
mov dword [ebp - 0x44], 0x85f97f58
sub dword [ebp - 0x44], 0x448d1de3
mov dword [ebp - 0x40], 0x94e52960
add dword [ebp - 0x40], 0xce8a430c
mov dword [ebp - 0x3c], 0xb546896b
add dword [ebp - 0x3c], 0x4ab97695
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x79e00c04
sub eax, 0x799ddae0
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3d2bc
push 0
call eax
mov ecx, 0x44a4e48b
add ecx, 0xbb5b613a
xor edx, edx
add edx, eax
mov ebx, 0x6070b888
sub ebx, 0x602d7488
add ebx, dword [ebp - 0x38]
mov edi, 0x846825f5
add edi, 0x39cc958
mov esi, dword [ebx]
add dword [ebp - 0x14], 0x23887d06
sub esi, edi
mov dword [edx], esi
xor dword [ebp - 8], esi
add edx, 0xad4270f7
add edx, 0x52bd8f0d
add ebx, 0x9886cb55
add ebx, 0x677934af
loop 0x40c842
add eax, 0x708ef88c
add eax, 0x8f72115b
mov ebx, eax
add eax, 0x408b8020
sub eax, 0x408b801b
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x401443
pop dword [ebp - 0x24]
mov eax, 0x79321952
sub eax, 0x78f2050f
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x85f3eab7
add dword [ebp - 0x34], 0xc85e5a94
mov dword [ebp - 0x30], 0xe10cb522
add dword [ebp - 0x30], 0x51269723
mov dword [ebp - 0x2c], 0x4310492e
add dword [ebp - 0x2c], 0x93bfb00
mov dword [ebp - 0x28], 0xda2ebb24
sub dword [ebp - 0x28], 0xda2ebb24
lea eax, [ebp - 0x34]
push eax
mov eax, 0xf7b96758
add eax, 0x88719ac
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x7e4f3162
sub dword [ebp - 0x34], 0x9dcc80c
mov dword [ebp - 0x30], 0x269971f0
add dword [ebp - 0x30], 0x1ad2ef85
mov dword [ebp - 0x2c], 0xdd358556
sub dword [ebp - 0x2c], 0x79c618ea
mov dword [ebp - 0x28], 0x98f6b018
sub dword [ebp - 0x28], 0x98f6b018
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x395e2
push 0
call eax
mov ecx, 0x3538586a
sub ecx, 0x35380c1b
xor edi, edi
add edi, eax
mov esi, 0x36301e4b
add esi, 0xca16c5b5
add esi, dword [ebp - 0x24]
mov ebx, 0xba889d21
add ebx, 0x34a693e5
add dword [ebp - 0x14], ebx
mov edx, dword [esi]
add dword [ebp - 0x18], 0x374704f6
add edx, ebx
xor dword [ebp - 0x10], 0x6e785b25
mov dword [edi], edx
add dword [ebp - 8], edi
add edi, 4
add esi, 4
loop 0x401562
add eax, 0x92ed3949
add eax, 0x6d13eac6
mov ebx, eax
add eax, 0x1f9c9f85
add eax, 0xe0636080
mov ecx, 0x5c84a1ac
sub ecx, 0x5c44a1ac
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x41dbf5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408aa4]
jne 0x41eaac
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x479e58], eax
mov dword [0x479e54], ecx
mov dword [0x479e50], edx
mov dword [0x479e4c], ebx
mov dword [0x479e48], esi
mov dword [0x479e44], edi
mov word [0x479e70], ss
mov word [0x479e64], cs
mov word [0x479e40], ds
mov word [0x479e3c], es
mov word [0x479e38], fs
mov word [0x479e34], gs
pushfd
pop dword [0x479e68]
mov eax, dword [ebp]
mov dword [0x479e5c], eax
mov eax, dword [ebp + 4]
mov dword [0x479e60], eax
lea eax, [ebp + 8]
mov dword [0x479e6c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x479da8], 0x10001
mov eax, dword [0x479e60]
mov dword [0x479d5c], eax
mov dword [0x479d50], 0xc0000409
mov dword [0x479d54], 1
mov eax, dword [0x408aa4]
mov dword [ebp - 0x328], eax
mov eax, dword [0x478934]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x479da0], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x408ca8
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x479da0], 0
jne 0x41eb98
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x41df14
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x41df23
pop dword [ebp - 0x44]
mov eax, 0x41df23
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x1822c598
add dword [ebp - 0x54], 0x362f7fb3
mov dword [ebp - 0x50], 0x4cf5aa93
add dword [ebp - 0x50], 0xe53da1b2
mov dword [ebp - 0x4c], 0xb031fe1e
add dword [ebp - 0x4c], 0x9c1a4610
mov dword [ebp - 0x48], 0x5b807628
sub dword [ebp - 0x48], 0x5b807628
lea eax, [ebp - 0x54]
push eax
mov eax, 0x24398e30
add eax, 0xdc068304
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x1d2f4b42
add dword [ebp - 0x54], 0x57431e14
mov dword [ebp - 0x50], 0xf49135b9
add dword [ebp - 0x50], 0x4cdb2bbc
mov dword [ebp - 0x4c], 0x288f50cc
add dword [ebp - 0x4c], 0x3ae01ba0
mov dword [ebp - 0x48], 0xc2b3063d
add dword [ebp - 0x48], 0x3d4cf9c3
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xdd88107a
add eax, 0x22b800c2
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x42f80
push 0
call eax
mov ecx, 0x5ebdb69e
add ecx, 0xa1429445
xor edi, edi
add edi, eax
mov edx, 0x480a00
add edx, dword [ebp - 0x44]
mov esi, 0x9b4c2b3a
add esi, 0xa2fab103
sub dword [ebp - 0x10], 0xd85982cf
mov ebx, dword [edx]
xor ebx, esi
mov dword [edi], ebx
sub dword [ebp - 0x24], 0x81b22372
add edi, 4
add edx, 0xb41e3e62
sub edx, 0xb41e3e5e
loop 0x41e03c
add eax, 0x11e5f
mov ebx, eax
add eax, 0xc96731f0
sub eax, 0xc96731eb
mov ecx, 0x32e48016
sub ecx, 0x32a48016
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x41e6ad
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x4435a8
call fcn.0041e6b7
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x47b8c0], ebx
jne 0x41e448
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x47b8b4
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x41e482
cmp eax, esi
jne 0x41e475
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x41e485
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x41e45c
xor esi, esi
inc esi
mov eax, dword [0x47b8b0]
cmp eax, esi
jne 0x41e498
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x41e4d3
mov eax, dword [0x47b8b0]
test eax, eax
jne 0x41e4cd
mov dword [0x47b8b0], esi
push 0x401474
push 0x401460
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41e4d3
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41e5ed
mov dword [0x479d48], esi
mov eax, dword [0x47b8b0]
cmp eax, esi
jne 0x41e4f7
push 0x40145c
push 0x401424
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x47b8b0], 2
cmp dword [ebp - 0x24], ebx
jne 0x41e504
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x47b8c4], ebx
je 0x41e525
push 0x47b8c4
call main
pop ecx
test eax, eax
je 0x41e525
push ebx
push 2
push ebx
call dword [0x47b8c4]
mov eax, dword [sym.imp.msvcr100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x41e57e
cmp al, bl
je 0x41e53e
cmp dword [ebp - 0x1c], ebx
jne 0x41e57e
mov al, byte [esi]
cmp al, bl
je 0x41e54e
cmp al, 0x20
ja 0x41e54e
inc esi
mov dword [ebp - 0x20], esi
jmp 0x41e53e
test byte [ebp - 0x40], 1
je 0x41e55a
movzx eax, word [ebp - 0x3c]
jmp 0x41e55d
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x479d44], eax
cmp dword [0x479d38], ebx
jne 0x41e5d3
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp al, 0x22
jne 0x41e58d
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr100.dll__ismbblead]
pop ecx
test eax, eax
je 0x41e5a0
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x41e52c
cmp dword [0x479d48], ebx
jne 0x41e5e1
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x479d44]
call fcn.0041e6fc
ret
call main
jmp 0x41e41a
Function at 0x42050d
Capabilities:
Query environment variable

Disassembly:
push 0x220
mov eax, 0x44210a
call fcn.0041e840
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push 0x408e70
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x42053f
mov al, 1
jmp 0x4205da
cmp eax, esi
jae 0x4205d8
and dword [ebp - 0x220], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x221]
push 0x47b858
push 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x228], eax
call fcn.00440d9a
pop ecx
pop ecx
test eax, eax
jne 0x420579
call fcn.00441869
mov dword [ebp - 0x22c], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00420880
mov esi, eax
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], esi
call fcn.004208be
mov dword [0x47a094], esi
jmp 0x420538
xor al, al
call fcn.0041e899
ret

Function at 0x42107d
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x44220a
call fcn.0041e7a1
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov edi, dword [eax + 8]
push 1
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], edi
call main
mov eax, dword [ebx + 0x70]
and dword [ebp - 4], 0
mov dword [edi + 8], eax
inc dword [ebx + 0x70]
push dword [edi + 8]
lea ecx, [ebx + 0x3c]
call main
push esi
mov ecx, eax
call main
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042148d
push 5
pop ecx
lea eax, [esi + 0xc]
push eax
mov edi, eax
mov eax, dword [ebp + 8]
push 0
mov esi, 0x409010
rep movsd dword es:[edi], dword [esi]
push dword [eax + 0xc]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x421109
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x421109
call fcn.004419ff
call fcn.0041e879
ret 4