joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ce342
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 + 0x10241120]
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 0x101ce388
cmp word [ebx], dx
jne 0x101ce388
or byte [eax + edi + 0x28], 4
jmp 0x101ce38d
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 0x101ce4f0
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 0x101ce4d0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x101ce3ce
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x101ce404
cmp eax, edx
jae 0x101ce412
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 0x101ce3a9
jmp 0x101ce4f0
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 0x101ce4cb
cmp dword [ebp - 0x18], 0
je 0x101ce4cb
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10241120]
test byte [eax + edi + 0x28], 0x48
je 0x101ce4a1
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 0x101ce465
mov word [esi], cx
jmp 0x101ce49c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10241120]
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 + 0x10241120]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10241120]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x101ce4f0
pop eax
cmp word [ebp - 4], ax
jne 0x101ce4b1
cmp esi, ebx
jne 0x101ce4b1
mov word [esi], ax
jmp 0x101ce4ed
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101ced7b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101ce4f0
push 0xd
pop eax
jmp 0x101ce4ac
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10241120]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x101ce4ea
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x101ce4f0
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 0x101d2e86
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 0x101d2f23
push ebx
push esi
call fcn.101d2e4f
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.101d1e61
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101d2ed0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101d2f22
push edi
push eax
call fcn.101cbbf9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101d2ef0
call fcn.101cb815
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101d2f21
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101d1e61
add esp, 0x20
test eax, eax
jne 0x101d2f0f
push edi
call fcn.101cb815
jmp 0x101d2f17
push ebx
call fcn.101cb815
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 0x101d2f26
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101d2f37
pop esi
ret
push ebx
push edi
push esi
call fcn.101d2e4f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101cbbf9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101d2f5f
push ebx
push esi
push edi
call fcn.101b6a90
add esp, 0xc
push 0
call fcn.101cb815
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101d332f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101d2f74

Function at 0x101d5566
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101c886c
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 0x101d55d5
cmp esi, dword [ebp - 4]
je 0x101d55d0
cmp dword [ebp + 0xc], 0
je 0x101d55d0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101d55ad
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101d50b8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x101d55d7
xor eax, eax
inc eax
jmp 0x101d55d7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101d563c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102220c0]
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.101c886c
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.101c886c
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 0x101d56b3
cmp word [ecx], dx
je 0x101d56b3
mov eax, dword [0x101e7df4]
push edi
dec eax
push eax
push 0x101e7ce0
call fcn.101d55db
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101d5726
cmp word [eax], dx
je 0x101d5726
mov eax, dword [edi]
test eax, eax
je 0x101d56d7
cmp word [eax], dx
je 0x101d56d7
lea eax, [ebp - 0x10]
push eax
call fcn.101d4fbe
jmp 0x101d56e0
lea eax, [ebp - 0x10]
push eax
call fcn.101d5059
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101d5750
mov eax, dword [0x101e7cdc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101e79d0
call fcn.101d55db
add esp, 0xc
test al, al
je 0x101d5750
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x101d571b
cmp word [eax], di
je 0x101d571b
lea eax, [ebp - 0x10]
push eax
call fcn.101d4fbe
pop ecx
jmp 0x101d5752
lea eax, [ebp - 0x10]
push eax
call fcn.101d5059
jmp 0x101d5718
mov eax, dword [edi]
test eax, eax
je 0x101d573d
cmp word [eax], dx
je 0x101d573d
lea eax, [ebp - 0x10]
push eax
call fcn.101d4f73
pop ecx
jmp 0x101d5750
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 0x101d581b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.101d5460
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x101d581b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101d581b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x101d581b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x101d57a8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.101cd385
test ebx, ebx
je 0x101d5816
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.101cd385
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101d581b
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 0x101d581b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.101d90e4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x101d581d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101b526a
leave
ret
Function at 0x101d7ef5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102220c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x101d7f38
call fcn.101c1957
mov dword [eax], 0xf
call fcn.101c196a
mov dword [eax], 0xd
call fcn.101ba686
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101b526a
leave
ret
test eax, eax
jne 0x101d7f3f
inc eax
jmp 0x101d7f2c
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x101d7f2a
xor eax, eax
cmp ecx, 1
setne al
jmp 0x101d7f2c
Function at 0x101d98c4
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.101d9840
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101d9a33
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101d9a33
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101d99e8
jg 0x101d9920
test eax, eax
je 0x101d99de
push 1
push 0x1000
call fcn.101ca996
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101d9943
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101d99d5
push 0x8000
push ebx
call fcn.101d9771
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x101d996c
jg 0x101d9967
cmp ecx, 0x1000
jb 0x101d996c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101cb5f9
add esp, 0x10
cmp eax, 0xffffffff
je 0x101d99b1
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 0x101d9967
jl 0x101d9998
test ecx, ecx
jne 0x101d9959
push dword [ebp - 0xc]
push ebx
call fcn.101d9771
push esi
call fcn.101cb815
add esp, 0xc
xor ebx, ebx
jmp 0x101d9a41
cmp byte [edi + 0x24], 0
je 0x101d99c8
cmp dword [edi + 0x20], 5
jne 0x101d99c8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101d99d3
mov ebx, dword [edi + 0x18]
jmp 0x101d99d5
xor ebx, ebx
push esi
call fcn.101cb815
pop ecx
jmp 0x101d9a41
test ecx, ecx
jg 0x101d99aa
jl 0x101d99e8
test eax, eax
jae 0x101d99aa
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101ced7b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101d9a08
cmp byte [edi + 0x1c], 0
je 0x101d99aa
jmp 0x101d9a39
push ebx
call fcn.101cfb6c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101d99aa
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 0x101d9a41
cmp byte [edi + 0x1c], 0
je 0x101d9a3e
mov ebx, dword [edi + 0x18]
jmp 0x101d9a41
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101ced7b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101dafb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101dafdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101dafdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a985
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411488
cmp edx, dword [eax]
je 0x40a9a7
add eax, 8
inc ecx
cmp eax, 0x411518
jl 0x40a998
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411488]
jne 0x40aad5
mov eax, dword [0x491ec0]
cmp eax, 1
je 0x40aaaf
test eax, eax
jne 0x40a9d8
cmp dword [0x4110b4], 1
je 0x40aaaf
cmp edx, 0xfc
je 0x40aad5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aa0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004073c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004074b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa52
lea eax, [ebp - 0x1a4]
push eax
call fcn.004074b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b0
push edi
call fcn.0040ac30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004073c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004073d0
lea eax, [ebp - 0xa0]
push 0x40d590
push eax
call fcn.004073d0
push dword [esi + 0x41148c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004073d0
push pe_overlay
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bd08
add esp, 0x2c
pop edi
jmp 0x40aad5
lea eax, [ebp + 8]
lea esi, [esi + 0x41148c]
push 0
push eax
push dword [esi]
call fcn.004074b0
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x43b646
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
sub edi, 0x5ee7b2ff
or edi, edi
mov ebx, 0xa6c01bd
call fcn.0043b696
or edi, edi
add ebx, 0x70e17687
xor dword [eax], edx
add ebx, 0x6e34c449
mov ebx, edi
inc eax
dec edi
add edi, 0x175571d2
sub edi, 0x5ba51b2b
cmp eax, ecx
jne fcn.0043b646
add edi, ebx
sub edi, 0x5c5a2d77
ret
Function at 0x47fbaa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x47fbb9
pop dword [ebp - 0x48]
mov eax, 0x69a20aed
add eax, 0x96a5f0cc
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x765869db
add dword [ebp - 0x58], 0xd7f9db70
mov dword [ebp - 0x54], 0x99a1dcf1
add dword [ebp - 0x54], 0x98916f54
mov dword [ebp - 0x50], 0xbbddfac3
sub dword [ebp - 0x50], 0x6f91b695
mov dword [ebp - 0x4c], 0x9ede5ed9
sub dword [ebp - 0x4c], 0x9ede5ed9
lea eax, [ebp - 0x58]
push eax
mov eax, 0xc88dd6c0
add eax, 0x37bbb994
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x321d32c4
sub dword [ebp - 0x58], 0xbdaac96e
mov dword [ebp - 0x54], 0x59823d59
add dword [ebp - 0x54], 0xe7ea241c
mov dword [ebp - 0x50], 0xdb5022ad
sub dword [ebp - 0x50], 0x77e0b641
mov dword [ebp - 0x4c], 0xfd485665
add dword [ebp - 0x4c], 0x2b7a99b
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xd7adca6d
sub eax, 0xd7643a49
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x6de18
push 0
call eax
mov ecx, 0x4925
xor esi, esi
add esi, eax
mov edx, 0x4c5e00
add edx, dword [ebp - 0x48]
mov edi, 0xe1790da0
add edi, 0xa69cb504
add dword [ebp - 0x40], 0x5e5fbdc
mov ebx, dword [edx]
add dword [ebp - 0x10], edx
add ebx, edi
xor dword [ebp - 0x34], edx
mov dword [esi], ebx
add esi, 0x8829297e
sub esi, 0x8829297a
add edx, 0x2f182e08
add edx, 0xd0e7d1fc
loop 0x47fcd1
add eax, 0x426a44ea
sub eax, 0x42692d83
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x704180ac
sub ecx, 0x700180ac
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4053bc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 1
pop esi
mov dword [0x45d5bc], eax
mov edx, esi
mov eax, 0x45d5bc
mov ecx, dword [eax]
add eax, 4
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
inc edx
mov dword [eax], edi
cmp eax, 0x45df78
jl 0x4053d1
mov dword [0x455288], esi
mov dword [0x45df7c], esi
pop edi
pop esi
ret

Function at 0x4053fe
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x45df7c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x45d5bc
jne 0x405420
push 0
call fcn.00442344
push eax
call fcn.004053bc
pop ecx
pop ecx
mov dword [0x455288], 0x270
mov dword [0x45d5b8], esi
mov dword [esp + 0x10], 0xe3
mov edi, bind
mov ecx, 0x9908b0df
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [eax + 0x630]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x405442
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x405479
mov eax, dword [esi]
mov edx, dword [0x45d5bc]
mov ebx, eax
xor ebx, edx
and dl, 1
and ebx, edi
pop edi
xor ebx, eax
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4054d3
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x455288]
jne 0x4054e0
call fcn.004053fe
mov eax, dword [0x45d5b8]
mov ecx, dword [eax]
add dword [0x45d5b8], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x405516
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x455288]
jne 0x405528
call fcn.004053fe
mov eax, dword [0x45d5b8]
mov eax, dword [eax]
add dword [0x45d5b8], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and cx, 0xdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
and dword [ebp - 4], 0
mov dword [ebp - 8], ecx
fild qword [ebp - 8]
fmul qword [0x451058]
leave
ret
Function at 0x40de92
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40df19
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
je 0x40df00
lea eax, [ebp - 0x114]
push 0x456b10
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
je 0x40df00
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call fcn.0043da4f
add esp, 0xc
test al, al
je 0x40df12
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jmp 0x40deb7
xor bl, bl
jmp 0x40dfc2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x40df2d
mov al, 1
jmp 0x40dfcb
lea eax, [ebp - 0x140]
push eax
push 0x456b0c
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40dfc0
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x140]
and eax, 0x10
cmp al, 0x10
jne 0x40dfae
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
je 0x40dfae
lea eax, [ebp - 0x114]
push 0x456b10
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
je 0x40dfae
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040de92
test al, al
je 0x40df12
push 0x456b10
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40df48
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10