joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b7b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100bf648]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006b7ff
cmp word [ebx], dx
jne 0x1006b7ff
or byte [eax + edi + 0x28], 4
jmp 0x1006b804
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1006b967
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1006b947
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1006b845
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006b87b
cmp eax, edx
jae 0x1006b889
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1006b820
jmp 0x1006b967
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006b942
cmp dword [ebp - 0x18], 0
je 0x1006b942
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100bf648]
test byte [eax + edi + 0x28], 0x48
je 0x1006b918
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1006b8dc
mov word [esi], cx
jmp 0x1006b913
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100bf648]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100bf648]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100bf648]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1006b967
pop eax
cmp word [ebp - 4], ax
jne 0x1006b928
cmp esi, ebx
jne 0x1006b928
mov word [esi], ax
jmp 0x1006b964
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006c1f2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1006b967
push 0xd
pop eax
jmp 0x1006b923
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100bf648]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1006b961
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1006b967
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006c722
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006c6a4
Function at 0x100712cd
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 0x1007136a
push ebx
push esi
call fcn.10071296
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.100700b2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10071317
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10071369
push edi
push eax
call fcn.100690f9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10071337
call fcn.10068a21
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10071368
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100700b2
add esp, 0x20
test eax, eax
jne 0x10071356
push edi
call fcn.10068a21
jmp 0x1007135e
push ebx
call fcn.10068a21
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 0x10073b6c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10065fba
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 0x10073bdb
cmp esi, dword [ebp - 4]
je 0x10073bd6
cmp dword [ebp + 0xc], 0
je 0x10073bd6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10073bb3
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100736be
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10073bdd
xor eax, eax
inc eax
jmp 0x10073bdd
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10073c42
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100bc080]
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.10065fba
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.10065fba
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 0x10073cb9
cmp word [ecx], dx
je 0x10073cb9
mov eax, dword [0x100812e4]
push edi
dec eax
push eax
push 0x100811d0
call fcn.10073be1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10073d2c
cmp word [eax], dx
je 0x10073d2c
mov eax, dword [edi]
test eax, eax
je 0x10073cdd
cmp word [eax], dx
je 0x10073cdd
lea eax, [ebp - 0x10]
push eax
call fcn.100735c4
jmp 0x10073ce6
lea eax, [ebp - 0x10]
push eax
call fcn.1007365f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10073d56
mov eax, dword [0x100811cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10080ec0
call fcn.10073be1
add esp, 0xc
test al, al
je 0x10073d56
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10073d21
cmp word [eax], di
je 0x10073d21
lea eax, [ebp - 0x10]
push eax
call fcn.100735c4
pop ecx
jmp 0x10073d58
lea eax, [ebp - 0x10]
push eax
call fcn.1007365f
jmp 0x10073d1e
mov eax, dword [edi]
test eax, eax
je 0x10073d43
cmp word [eax], dx
je 0x10073d43
lea eax, [ebp - 0x10]
push eax
call fcn.10073579
pop ecx
jmp 0x10073d56
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 0x10073e21
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10073a66
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10073e21
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10073e21
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10073e21
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10073dae
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1006aaa5
test ebx, ebx
je 0x10073e1c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1006aaa5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10073e21
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 0x10073e21
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006c384
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10073e23
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10048db4
leave
ret
Function at 0x10077bc1
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.10077b3d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10077d30
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10077d30
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10077ce5
jg 0x10077c1d
test eax, eax
je 0x10077cdb
push 1
push 0x1000
call fcn.1006a3ba
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10077c40
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10077cd2
push 0x8000
push ebx
call fcn.10077a6e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10077c69
jg 0x10077c64
cmp ecx, 0x1000
jb 0x10077c69
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10068805
add esp, 0x10
cmp eax, 0xffffffff
je 0x10077cae
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 0x10077c64
jl 0x10077c95
test ecx, ecx
jne 0x10077c56
push dword [ebp - 0xc]
push ebx
call fcn.10077a6e
push esi
call fcn.10068a21
add esp, 0xc
xor ebx, ebx
jmp 0x10077d3e
cmp byte [edi + 0x24], 0
je 0x10077cc5
cmp dword [edi + 0x20], 5
jne 0x10077cc5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10077cd0
mov ebx, dword [edi + 0x18]
jmp 0x10077cd2
xor ebx, ebx
push esi
call fcn.10068a21
pop ecx
jmp 0x10077d3e
test ecx, ecx
jg 0x10077ca7
jl 0x10077ce5
test eax, eax
jae 0x10077ca7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006c1f2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10077d05
cmp byte [edi + 0x1c], 0
je 0x10077ca7
jmp 0x10077d36
push ebx
call fcn.10071b6d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10077ca7
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 0x10077d3e
cmp byte [edi + 0x1c], 0
je 0x10077d3b
mov ebx, dword [edi + 0x18]
jmp 0x10077d3e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1006c1f2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100787d0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x4010c6
mov eax, dword [0x40a08b]
shl eax, 2
mov dword [0x40a08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00402e74
pop edx
call fcn.00402210
call fcn.00402e78
push 0
call fcn.004040b8
pop ecx
push 0x40a034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40a093], eax
push 0
jmp fcn.00407b68

Function at 0x401684
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edi, eax
mov dword [0x40a11c], edi
test edi, edi
jne 0x4016b1
mov dword [0x40a120], 2
jmp 0x401797
mov eax, dword [ebp + 0xc]
push eax
movzx edx, word [ebp + 8]
push edx
push edi
call dword [0x40a0ec]
mov esi, eax
test esi, esi
jne 0x4016d6
mov dword [0x40a120], 3
jmp 0x401797
push esi
push edi
call dword [0x40a0f0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4016f6
mov dword [0x40a120], 4
jmp 0x401797
mov eax, dword [ebp - 4]
push eax
call dword [0x40a0f4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401715
mov dword [0x40a120], 5
jmp 0x40178e
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
push esi
push edi
call dword [0x40a0f8]
sub eax, ebx
sub eax, dword [ebp - 0xc]
mov esi, eax
mov edi, esi
mov eax, edi
shl eax, 2
push eax
call fcn.00401e88
pop ecx
mov dword [ebp - 0x10], eax
push edi
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00403174
add esp, 0xc
push edi
add ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00403104
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dl, 0x69
xor ecx, ecx
cmp esi, ecx
jle 0x401772
xor byte [eax], dl
inc eax
add dl, 0x11
inc ecx
cmp esi, ecx
jg 0x401767
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004017a0
add esp, 8
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401cc0
pop ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_FreeResource
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401bf0
Capabilities:
Get session user name

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffefc
mov dword [esp], 0x100
push esp
lea eax, [esp + 8]
push eax
call sub.ADVAPI32.DLL_GetUserNameA
test eax, eax
je 0x401c5d
xor esi, esi
mov ebx, 0x40a12c
jmp 0x401c51
mov eax, dword [ebx]
push eax
call fcn.00401314
pop ecx
mov edi, eax
mov dword [ebx], edi
lea eax, [esp + 4]
mov edx, edi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401c4d
test cl, cl
je 0x401c47
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401c4d
add eax, 2
add edx, 2
test cl, cl
jne 0x401c2b
jne 0x401c4d
mov al, 1
jmp 0x401c5f
inc esi
add ebx, 4
cmp esi, dword [0x40a140]
jl 0x401c18
xor eax, eax
jmp 0x401c5f
mov al, 1
add esp, 0x104
pop edi
pop esi
pop ebx
ret

Function at 0x402b68
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x406bec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x406c4e
call fcn.00406b9c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00403254
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00403254
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x406cac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40bfd8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x406d86
cmp dword [0x40bfd4], 0
jne 0x406d86
cmp dword [0x40c1c8], 0
je 0x406d40
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00406a9c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406d26
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00406a9c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406d26
lea ebx, [ebp - 0x84]
jmp 0x406d27
inc ebx
call fcn.00406c68
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x406dc1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40bfdc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00403254
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40bfdf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x406dc1
cmp dword [0x40bfd4], 0
je 0x406da0
cmp dword [0x40bfd4], 0xffffffff
je 0x406dc1
push esi
call dword [0x40bfd4]
pop ecx
mov eax, dword [0x40bfd8]
test eax, eax
je 0x406dc1
cmp dword [0x40bfd8], 0xffffffff
je 0x406dc1
cmp byte [eax], 0
je 0x406dc1
push esi
push eax
call fcn.00406bec
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4075ac
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40d26c], 0
jne 0x40762d
cmp dword [0x40d28c], 0
jne 0x4075dc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x40d28c], eax
test eax, eax
jne 0x4075dc
push str.GetEnvironmentStrings_failed
call fcn.00406dd8
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40d28c]
jmp 0x4075f0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00403254
pop ecx
mov edi, eax
test eax, eax
jne 0x4075e8
lea edi, [ebp + 1]
push edi
call fcn.00402120
pop ecx
mov ebx, eax
mov dword [0x40d270], ebx
test ebx, ebx
jne 0x40761a
xor eax, eax
jmp 0x4076f0
push edi
mov edx, dword [0x40d28c]
push edx
push ebx
call fcn.00403104
add esp, 0xc
jmp 0x40764d
xor esi, esi
mov ebx, dword [0x40d26c]
jmp 0x407647
push eax
call fcn.00403254
pop ecx
test eax, eax
jne 0x407643
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x407637
lea ebx, [esi + 4]
push 4
mov dword [0x40d274], ebx
inc ebx
push ebx
call fcn.00401c84
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x407670
xor eax, eax
jmp 0x4076f0
cmp dword [0x40d26c], 0
jne 0x4076a1
xor esi, esi
mov ebx, dword [0x40d270]
mov eax, dword [esp]
mov ebp, eax
jmp 0x407692
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00403254
pop ecx
mov edi, eax
test eax, eax
jne 0x407688
jmp 0x4076d2
xor esi, esi
mov ebx, dword [0x40d26c]
mov eax, dword [esp]
mov edi, eax
jmp 0x4076cc
push eax
call fcn.00403254
pop ecx
test eax, eax
je 0x4076c1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4076c5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4076b0
mov eax, dword [0x40d26c]
test eax, eax
je 0x4076e2
push eax
call fcn.00402130
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40d26c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x458c38
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x458c47
xor eax, eax
pop edi
pop ecx
ret
mov eax, dword [edi + 0x3c]
push ebx
push ebp
push esi
mov ecx, dword [eax + edi + 0x78]
xor esi, esi
mov eax, dword [ecx + edi + 0x20]
add ecx, edi
add eax, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov ebp, dword [ecx + 0x18]
test ebp, ebp
je 0x458c9a
mov ebx, dword [esp + 0x1c]
mov ch, byte [ebx]
mov edx, dword [eax + esi*4]
add edx, edi
mov cl, byte [edx]
cmp cl, ch
jne 0x458c95
mov eax, ebx
sub edx, ebx
test cl, cl
je 0x458ca2
cmp byte [eax], 0
je 0x458ca2
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0x458c7f
mov eax, dword [esp + 0x18]
inc esi
cmp esi, ebp
jb 0x458c70
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
pop ecx
ret
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
pop esi
pop ebp
pop ebx
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
pop edi
pop ecx
ret

Function at 0x458cc8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov ecx, dword [esp + 4]
push ebx
Function at 0x458d48
Capabilities:
Access peb ldr_data
Encode data using base64
Get number of processors
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ecx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
nop dword [eax]
mov eax, dword [eax]
cmp dword [eax + 0x30], 0
je 0x458d58
push ebx
push ebp
mov ebp, dword [eax + 0x18]
push esi
mov esi, dword [eax + 0x30]
mov eax, dword [0x4cc1f4]
push edi
push 0
push eax
call fcn.00458cc8
mov edi, dword [0x4cc220]
add esp, 8
mov ebx, eax
cmp dword [edi], 0
je 0x458ddd
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
je 0x458da0
nop dword [eax]
inc ecx
cmp word [esi + ecx*2], 0
jne 0x458d98
cmp cl, byte [edi]
je 0x458db1
cmp cl, byte [edi + 1]
je 0x458db1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
xor ecx, ecx
test ax, ax
je 0x458dcb
movzx eax, ax
lea ecx, [ecx + 1]
add edx, eax
movzx eax, word [esi + ecx*2]
test ax, ax
jne 0x458dba
cmp edx, dword [edi + 4]
je 0x458ddd
cmp edx, dword [edi + 8]
je 0x458ddd
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x4cc1f0]
push eax
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor edx, edx
mov esi, eax
cmp dword [0x4cc1e4], edx
jbe 0x458e23
nop word [eax + eax]
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x4cc1e8]
add edx, eax
cmp edx, dword [0x4cc1e4]
jb 0x458e08
push esi
push ebx
call fcn.00458c38
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x458eb2
mov esi, dword [0x4cc218]
lea eax, [esp + 0x10]
mov ecx, dword [0x4cc1e4]
push eax
push ecx
mov ecx, dword [0x4cc21c]
push ecx
push esi
call ebx
mov edx, dword [0x4cc200]
mov ecx, 8
mov edi, dword [edx + ebp + 4]
add edx, ebp
cmp dword [0x4cc21c], ecx
jbe 0x458e7f
mov eax, dword [edx + ecx]
add eax, edi
mov dword [esi + ecx], eax
mov eax, dword [0x4cc1e8]
add ecx, eax
cmp ecx, dword [0x4cc21c]
jb 0x458e68
mov eax, dword [0x4cc1f8]
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov eax, dword [0x4cc21c]
push eax
push esi
call ebx
mov eax, dword [0x4cc1ec]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x4cc1ec]
add ecx, esi
add esi, eax
push esi
call ecx
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x10562058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105621a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1056207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1056206a
add dl, dl
jne 0x10562089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105620dc
xor eax, eax
add dl, dl
jne 0x10562096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1056217d
add dl, dl
jne 0x105620a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105620b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105620bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105620c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105620d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10562075
mov eax, 1
add dl, dl
jne 0x105620ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105620f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105620e1
sub eax, ebx
mov ebx, 1
jne 0x10562128
mov ecx, 1
add dl, dl
jne 0x1056210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10562119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10562105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10562075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1056213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1056214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10562136
cmp eax, 0x7d00
jae 0x1056216d
cmp eax, 0x500
jb 0x10562168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10562075
cmp eax, 0x7f
ja 0x10562170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10562075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1056219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10562075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10