joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404280
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push 4
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x404346
push ebx
btr ebx, 0xf4
xadd eax, ebx
xchg ebx, eax
test eax, 0x534f82bb
sub bl, dl
mov eax, edx
xchg al, bl
mov al, cl
movzx ebx, bx
not bh
rcl ebx, 0x4b
or eax, 0x393eeb01
imul ebx, ebp, 0x5a429437
movzx eax, si
mov eax, 0xfc226531
test ebx, edx
sub bh, 0x82
test bl, al
bsr eax, ebp
shr ebx, 1
imul ebx, eax, 0xd815a07e
sbb al, 0x7b
test edi, edi
shl bl, cl
movsx ebx, dx
neg bl
bswap ebx
add ah, al
not eax
xadd bl, al
shrd ebx, eax, cl
movzx eax, cx
mov bl, 0x5d
imul ebx, esi, 0x9c792c83
neg ah
movzx ebx, dh
inc eax
push 0
lea ecx, [ebp + 0xc]
push 0
push ecx
push 0
push 0
lea edx, [ebp - 0xc]
push 0xc
push edx
push 0x98000004
push esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x2bf20
mov dword [ebp - 4], 0x2710
call dword [sym.imp.WS2_32.dll_WSAIoctl]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, 4
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
btr ebx, 0xf4
xadd eax, ebx
xchg ebx, eax
test eax, 0x534f82bb
sub bl, dl
mov eax, edx
xchg al, bl
mov al, cl
movzx ebx, bx
not bh
rcl ebx, 0x4b
or eax, 0x393eeb01
imul ebx, ebp, 0x5a429437
movzx eax, si
mov eax, 0xfc226531
test ebx, edx
sub bh, 0x82
test bl, al
bsr eax, ebp
shr ebx, 1
imul ebx, eax, 0xd815a07e
sbb al, 0x7b
test edi, edi
shl bl, cl
movsx ebx, dx
neg bl
bswap ebx
add ah, al
not eax
xadd bl, al
shrd ebx, eax, cl
movzx eax, cx
mov bl, 0x5d
imul ebx, esi, 0x9c792c83
neg ah
movzx ebx, dh
inc eax
mov edi, str.stemCentralProcessor0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.HARDWAREDESCRIPTIONSy
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov edi, str.HARDWAREDESCRIPTIONSy
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.stemCentralProcessor0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 4]
push ecx
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
push ecx
push 0
push str.MHz
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404800
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x407510]
push ebx
push esi
push edi
test eax, eax
jne case.default.0x40482e
mov esi, dword [esp + 0x10]
mov dword [0x407510], 1
mov eax, dword [esi + 0x19c]
dec eax
cmp eax, 3
ja case.default.0x40482e
jmp dword [eax*4 + 0x4049c8]
mov eax, dword [esi + 0x1a0]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x403eb0
test eax, eax
push 0
push 0
jne 0x404884
call ebx
mov eax, dword [esi + 0x198]
xor edi, edi
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x4026b0
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
inc edi
cmp edi, eax
jl 0x404865
pop edi
pop esi
pop ebx
ret
call ebx
mov eax, dword [esi + 0x198]
xor edi, edi
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push section.PAGE
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
inc edi
cmp edi, eax
jl 0x404896
pop edi
pop esi
pop ebx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x403eb0
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
xor edi, edi
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x403ac0
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
inc edi
cmp edi, eax
jl 0x4048db
pop edi
pop esi
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x403eb0
push 0
push 0
call edi
mov eax, dword [esi + 0x1a0]
push 0
push 0
push esi
push 0x403eb0
push 0
test eax, eax
push 0
jne 0x404959
call edi
mov eax, dword [esi + 0x198]
xor ebx, ebx
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x403380
push 0
push 0
call edi
mov eax, dword [esi + 0x198]
inc ebx
cmp ebx, eax
jl 0x40493a
pop edi
pop esi
pop ebx
ret
call edi
mov eax, dword [esi + 0x198]
xor ebx, ebx
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x402d80
push 0
push 0
call edi
mov eax, dword [esi + 0x198]
inc ebx
cmp ebx, eax
jl 0x404967
pop edi
pop esi
pop ebx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x403eb0
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
xor edi, edi
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x403c80
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
inc edi
cmp edi, eax
jl 0x4049a8
pop edi
pop esi
pop ebx
ret
Function at 0x40162a
Capabilities:
Hash data with md5

Disassembly:
push dword [esp + 0xc]
mov eax, dword [esp + 8]
push dword [esp + 0xc]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
push eax
mov dword [eax + 0xc], 0x10325476
call fcn.0040165b
add esp, 0xc
ret

Function at 0x401fad
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push ebp
movzx ebp, byte [esp + 0x18]
push esi
push edi
mov edi, edx
mov dword [esp + 0x10], 4
test ebp, ebp
jle 0x401fdc
mov ecx, dword [esp + 0x1c]
mov eax, edi
sub ecx, edx
mov esi, ebp
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec esi
jne 0x401fd3
mov eax, dword [esp + 0x10]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x401fc5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402068
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x14]
push 0x81018
pop ebp
xor edx, edx
push ebp
pop edi
rol edi, 8
and edi, 0xff
movzx ecx, byte [esi + edi]
push ecx
push 2
call fcn.00402141
add esp, 8
mov bl, al
push ebp
pop edi
rol edi, 0x10
and edi, 0xff
movzx ecx, byte [esi + edi]
push ecx
push 3
call fcn.00402141
add esp, 8
xor bl, al
push ebp
pop edi
rol edi, 0x18
and edi, 0xff
movzx ecx, byte [esi + edi]
push ecx
push 1
call fcn.00402141
add esp, 8
xor bl, al
push ebp
pop edi
rol edi, 0x20
and edi, 0xff
movzx ecx, byte [esi + edi]
push ecx
push 1
call fcn.00402141
add esp, 8
xor bl, al
push ebp
pop edi
rol edi, 8
and edi, 0xff
mov byte [edi + 0x4030f3], bl
rol ebp, 8
inc edx
cmp edx, 4
jne 0x402078
xor edx, edx
inc ebp
rol ebp, 8
inc edx
cmp edx, 4
jne 0x402108
xor edx, edx
inc dword [0x40309f]
cmp dword [0x40309f], 4
jne 0x402078
and dword [0x40309f], 0
mov esi, 0x4030f3
mov edi, dword [esp + 0x14]
push 0x20
pop ecx
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402e93
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
xor ebx, ebx
mov ebp, 0x403353
mov eax, ebx
shl eax, 5
add eax, ebp
push 4
push eax
push 0x403123
call fcn.00401fad
add esp, 0xc
inc ebx
push 0x403123
call fcn.00401ff0
add esp, 4
push 0x403875
push 0x403123
call fcn.00402026
add esp, 8
push 0x403123
call fcn.00402068
add esp, 4
mov ebp, 0x403353
mov eax, ebx
shl eax, 5
add eax, ebp
push 4
push eax
push 0x403123
call fcn.00401fad
add esp, 0xc
inc ebx
cmp ebx, 0xa
jne 0x402eb2
push 0x403123
call fcn.00401ff0
add esp, 4
push 0x403875
push 0x403123
call fcn.00402026
add esp, 8
mov ebp, 0x403353
mov eax, ebx
shl eax, 5
add eax, ebp
push 4
push eax
push 0x403123
call fcn.00401fad
add esp, 0xc
ret
Function at 0x98e220
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x79e015
lea edi, [esi - 0x39d015]
push edi
or ebp, 0xffffffff
jmp 0x98e242
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x98e249
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98e238
mov eax, 1
add ebx, ebx
jne 0x98e25b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x98e26c
jne 0x98e28b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98e28b
dec eax
add ebx, ebx
jne 0x98e278
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x98e250
add ebx, ebx
jne 0x98e287
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x98e2dd
xor ecx, ecx
sub eax, 3
jb 0x98e2a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x98e312
sar eax, 1
mov ebp, eax
jmp 0x98e2ae
add ebx, ebx
jne 0x98e2ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98e27c
inc ecx
add ebx, ebx
jne 0x98e2bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98e27c
add ebx, ebx
jne 0x98e2c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x98e2be
jne 0x98e2da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x98e2be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x98e2fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x98e2ee
jmp 0x98e23e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x98e2fc
add edi, ecx
jmp 0x98e23e
pop esi
mov edi, esi
mov ecx, 0xdd43
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x98e31a
cmp byte [edi], 0x28
jne 0x98e31a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x98e31f
lea edi, [esi + 0x57e000]
mov eax, dword [edi]
or eax, eax
je 0x98e38e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x58e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x58e028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x98e34c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x58e030]
or eax, eax
je 0x98e388
mov dword [ebx], eax
add ebx, 4
jmp 0x98e369
call dword [esi + 0x58e02c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x98e3c8
cmp al, 0xef
ja 0x98e3b2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x98e394
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x98e3a1
mov eax, dword [edi]
add edi, 4
jmp 0x98e3a1
mov ebp, dword [esi + 0x58e034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x98e3fc
sub esp, 0xffffff80
jmp 0x463bd0
Function at 0x4010e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x401125
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00402241
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x40113c
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x401132
cmp word [esp + 4], 0
je 0x401167
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x401184
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x401150
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.00402241
add esp, 0x20c
ret
call fcn.004055d1
int3
Function at 0x401680
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.004150b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x41f480]
mov ebp, ecx
test edi, edi
jne 0x4016e7
push 0x1000
mov edx, str.HOME
lea ecx, [esp + 0x14]
call fcn.00401190
add esp, 4
test al, al
je 0x4017c4
lea eax, [esp + 0x10]
push eax
call fcn.0040930e
mov edi, dword [0x41f480]
add esp, 4
mov dword [edi*4 + 0x434490], eax
inc edi
mov dword [0x41f480], edi
xor esi, esi
test edi, edi
jle 0x401734
nop dword [eax]
mov eax, dword [esi*4 + 0x434490]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401726
test dx, dx
je 0x401722
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401726
add ecx, 4
add eax, 4
test dx, dx
jne 0x401700
xor eax, eax
jmp 0x40172b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40175b
inc esi
cmp esi, edi
jl 0x4016f0
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401740
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40175f
cmp word [ebp + 2], 0x3a
jne 0x40175f
mov al, 1
jmp 0x4017ab
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x401780
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4017a9
mov bl, 1
cmp dword [0x41f480], 0x400
jge 0x4017a9
push ebp
call fcn.0040930e
mov ecx, dword [0x41f480]
add esp, 4
mov dword [ecx*4 + 0x434490], eax
inc ecx
mov dword [0x41f480], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402241
add esp, 0x200c
ret
mov ecx, str.HOME
call fcn.00401660
int3

Function at 0x4018d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x41f484]
sub esp, 0x20
test eax, eax
je 0x401906
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4018fa
push 0
push dword [0x41f484]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x41f484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x41f488], 0
je 0x4019db
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x431c90
mov dword [esp + 0x20], 0x41bc44
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x41bc44
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x431c90
call ebp
cmp eax, 0xffffffff
je 0x4019d7
test al, 0x10
je 0x4019d7
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x431c90
mov dword [esp + 0x20], 0x41bc44
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x41bc44
call edi
inc esi
cmp esi, 0x14
jl 0x401974
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401a20
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x1000
mov ebp, eax
xor eax, eax
push 0x435490
push eax
mov word [0x41fc90], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401ccd
xor ebx, ebx
mov dword [ebp], 0x435490
cmp dword [esp + 0x10], ebx
jle 0x401cc2
nop dword [eax]
cmp ebx, 1
jl 0x401aa9
cmp word [0x41fc90], 0
mov ecx, 0x8000
mov eax, 0x41fc90
je 0x401aa3
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x401a90
cmp ecx, 1
jb 0x401ccd
mov dword [eax], 0x20
mov edi, dword [ebp + ebx*4]
mov esi, str.__t_n_v_
mov ecx, 0x20
push ecx
push edi
call fcn.00402ece
add esp, 8
test eax, eax
jne 0x401b29
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x401ab7
mov edx, 0x8000
mov esi, dword [ebp + ebx*4]
mov ecx, 0x41fc90
cmp word [0x41fc90], ax
je 0x401afa
nop word [eax + eax]
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x401af0
movzx eax, word [esi]
mov edi, eax
test ax, ax
je 0x401b1f
cmp edx, 1
jb 0x401ccd
add esi, 2
mov word [ecx], ax
add ecx, 2
dec edx
movzx eax, word [esi]
test ax, ax
jne 0x401b04
xor eax, eax
mov word [ecx], ax
jmp 0x401cb7
cmp word [0x41fc90], 0
mov ecx, 0x8000
mov eax, 0x41fc90
je 0x401b53
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x401b40
cmp ecx, 1
jb 0x401ccd
mov dword [eax], 0x22
mov edi, dword [ebp + ebx*4]
nop dword [eax]
movzx eax, word [edi]
xor edx, edx
mov ecx, eax
cmp eax, 0x5c
jne 0x401b7f
nop dword [eax]
movzx eax, word [edi + 2]
add edi, 2
inc edx
cmp eax, 0x5c
je 0x401b70
mov ecx, eax
xor esi, esi
test cx, cx
je 0x401c54
cmp word [edi], 0x22
jne 0x401bd4
lea edx, [edx*2 + 1]
test edx, edx
jle 0x401c12
nop dword [eax + eax]
cmp word [0x41fc90], 0
mov ecx, 0x8000
mov eax, 0x41fc90
je 0x401bc7
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x401bb4
cmp ecx, 1
jb 0x401ccd
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x401ba0
jmp 0x401c12
test edx, edx
jle 0x401c12
nop dword [eax + eax]
cmp word [0x41fc90], 0
mov ecx, 0x8000
mov eax, 0x41fc90
je 0x401c07
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x401bf4
cmp ecx, 1
jb 0x401ccd
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x401be0
cmp word [0x41fc90], 0
mov ecx, 0x8000
movzx edx, word [edi]
mov eax, 0x41fc90
je 0x401c43
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x401c30
cmp ecx, 1
jb 0x401ccd
xor ecx, ecx
mov word [eax], dx
mov word [eax + 2], cx
add edi, 2
jmp 0x401b60
add edx, edx
test edx, edx
jle 0x401c8e
nop word [eax + eax]
cmp word [0x41fc90], 0
mov ecx, 0x8000
mov eax, 0x41fc90
je 0x401c83
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x401c74
cmp ecx, 1
jb 0x401ccd
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x401c60
cmp word [0x41fc90], 0
mov ecx, 0x8000
mov eax, 0x41fc90
je 0x401cb1
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x401ca2
cmp ecx, 1
jb 0x401ccd
mov dword [eax], 0x22
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x401a70
pop edi
pop esi
pop ebp
mov eax, 0x41fc90
pop ebx
pop ecx
ret
call fcn.004055d1
int3
Function at 0x402a41
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402a80
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402a80
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402a80
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402a80
cmp dword [ecx + 0x74], 0xe
jbe 0x402a80
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40a943
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417afc
push 0x417af4
push str.FlsAlloc
push 0x1f
call fcn.0040a821
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a977
push dword [ebp + 8]
mov ecx, esi
call dword [0x416154]
call esi
jmp 0x40a97d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a9c1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417b0c
push 0x417b04
push str.FlsGetValue
push 0x21
call fcn.0040a821
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a9f8
push dword [ebp + 8]
mov ecx, esi
call dword [0x416154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40aa00
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417b14
push 0x417b0c
push str.FlsSetValue
push 0x22
call fcn.0040a821
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40aa3a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x416154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40c900
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x40c94b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040ca9b
test al, al
jne 0x40c945
sub edx, 2
cmp edx, edi
jne 0x40c92b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40c96d
lea eax, [edi + 2]
cmp edx, eax
je 0x40c96d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040c84c
add esp, 0x10
jmp 0x40ca67
push esi
lea ecx, [ebp - 0x255]
call fcn.0040ca9b
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 0x40c9b0
push dword [ebp - 0x25c]
jmp 0x40c95d
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 0x40c9ed
cmp word [ebp - 0x226], 0
je 0x40ca0e
cmp word [ebp - 0x226], ax
jne 0x40c9ed
cmp word [ebp - 0x224], 0
je 0x40ca0e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040c84c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40ca5a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40c9c7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40ca42
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40ca67
push 0x40c67c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004119e0
add esp, 0x10
jmp 0x40ca37
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.00402241
leave
ret

Function at 0x40d4e1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40d4f2
pop esi
ret
push ebx
push edi
push esi
call fcn.0040d4aa
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040b414
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40d51a
push ebx
push esi
push edi
call fcn.00403dc0
add esp, 0xc
push 0
call fcn.0040a6ce
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40d8ea
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d52f
Function at 0x414ca0
Capabilities:
Parse pe header

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

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x42c81810
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x459556aa
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219