joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100667d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10066800
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10066830
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10066830
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10066906
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10066859
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10066865
movsx eax, bl
jmp 0x1006689d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x100668c7
sub eax, 1
je 0x100668c7
sub eax, 2
jne 0x10066906
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100668e5
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10066906
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x10066906
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret 4
Function at 0x100772d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1007738c
cmp byte [esi + 0x3d], 0
je 0x1007738c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1007737a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10077341
sub eax, 1
je 0x10077345
sub eax, 2
jne 0x1007737a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10077363
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1007737a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret

Function at 0x1007a960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 3
xor eax, eax
mov dl, byte [edi + eax - 0x2dde7edd]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007a98e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007a971
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1007a9a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xb5
xor eax, eax
mov dl, byte [edi + eax - 0x39e8c79c]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007a9ce
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007a9b1
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1007a9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x7e
xor eax, eax
mov dl, byte [edi + eax + 0x47b30cfa]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007aa0e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007a9f1
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x1007aa20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x90
xor eax, eax
mov dl, byte [edi + eax + 0x2c0f6166]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007aa4e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007aa31
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1007d370
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d6ed
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.1007d200
cmp byte [ebp - 0x84], 0
jne 0x1007d4c1
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x1007d405
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x100b5ab8
call fcn.1007d200
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.1007d200
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x1007d474
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.1007d2b0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1007d503
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007d4f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007d4f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007de24
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007d5d9
mov esp, ebp
pop ebp
ret
Function at 0x10001140
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1025d744], 0
jne 0x10001166
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x3285501
call fcn.10025140
add esp, 0xc
mov dword [0x1025d744], eax
mov eax, dword [0x1025d744]
pop ebp
ret

Function at 0x10001230
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1025d734], 0
jne 0x10001256
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x53b2070f
call fcn.10025140
add esp, 0xc
mov dword [0x1025d734], eax
mov eax, dword [0x1025d734]
pop ebp
ret

Function at 0x10001380
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1025d770], 0
jne 0x100013a6
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xafcab3c4
call fcn.10025140
add esp, 0xc
mov dword [0x1025d770], eax
mov eax, dword [0x1025d770]
pop ebp
ret

Function at 0x10001500
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1025d738], 0
jne 0x10001526
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xf8f45725
call fcn.10025140
add esp, 0xc
mov dword [0x1025d738], eax
mov eax, dword [0x1025d738]
pop ebp
ret

Function at 0x10001530
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1025d778], 0
jne 0x10001556
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xfaba0065
call fcn.10025140
add esp, 0xc
mov dword [0x1025d778], eax
mov eax, dword [0x1025d778]
pop ebp
ret
Function at 0x10009060
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10009081
xor eax, eax
jmp 0x1000919d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x4550
je 0x1000909f
xor eax, eax
jmp 0x1000919d
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
cmp ecx, 0x60
jl 0x100090b4
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x74], 0
jne 0x100090bb
xor eax, eax
jmp 0x1000919d
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100090da
xor eax, eax
jmp 0x1000919d
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], 0
jmp 0x10009119
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x18]
jae 0x1000919b
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10021df0
add esp, 4
cmp eax, dword [ebp + 0xc]
je 0x1000914c
jmp 0x10009110
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
add eax, edx
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
sub eax, edx
mov word [ebp - 8], ax
mov dword [ebp - 0x20], 0
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
jmp 0x1000919d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x1000ed90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000f768
xor eax, eax
jmp 0x1000f794
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
call fcn.10001290
add esp, 8
call eax
mov edx, dword [ebp - 4]
push edx
push 0
push 0
call fcn.10001530
add esp, 8
call eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x10025160
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x1002517f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x100251af
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp + 0xc]
imul eax, edx, 0x1000193
push eax
mov ecx, 1
shl ecx, 0
add ecx, dword [ebp + 8]
push ecx
call fcn.10025160
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1002cef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x1004a17c]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x1004a104]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], 0xf6
mov dword [ebp - 0x3c], 0xd143a03f
mov dword [ebp - 0x40], 0x97
mov edx, 0xa8
mov word [ebp - 0xc], dx
mov al, byte [0x1004a06b]
mov byte [ebp - 1], al
movsx eax, word [0x1004a100]
cdq
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x44], 0xece8
xor ecx, ecx
mov dword [ebp - 0x6c], 0xe174
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x48], 0xe158
movsx edx, word [0x1004a120]
mov dword [ebp - 0x4c], edx
mov eax, dword [0x1004a108]
mov ecx, dword [0x1004a10c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x50], 0x35d7
mov byte [ebp - 2], 0x29
mov edx, dword [0x1004a104]
mov word [ebp - 0x10], dx
mov ax, word [0x1004a0c8]
mov word [ebp - 0x14], ax
mov ecx, 0xe7
mov word [ebp - 0x18], cx
mov dx, word [0x1004a178]
mov word [ebp - 0x1c], dx
mov ax, word [0x1004a0d0]
mov word [ebp - 0x20], ax
mov byte [ebp - 3], 0x5a
mov byte [ebp - 4], 0xa8
mov cx, word [0x1004a140]
mov word [ebp - 0x24], cx
mov edx, 0xc6b24
mov dword [ebp - 0x7c], 0xb2c750c0
mov dword [ebp - 0x78], edx
mov eax, dword [0x1004a128]
cdq
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
xor eax, eax
mov dword [ebp - 0x8c], 0x7ac04d7
mov dword [ebp - 0x88], eax
mov byte [ebp - 5], 0xbb
mov ecx, 0x7470c
mov dword [ebp - 0x94], 0xc3792aef
mov dword [ebp - 0x90], ecx
mov eax, dword [0x1004a140]
cdq
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
mov edx, 0x68e37
mov dword [ebp - 0xa4], 0x5f5a46ad
mov dword [ebp - 0xa0], edx
mov eax, dword [0x1004a190]
mov word [ebp - 0x28], ax
mov ecx, 0xd1
mov word [ebp - 0x2c], cx
mov dx, word [0x1004a120]
mov byte [ebp - 6], dl
movzx eax, byte [0x1004a017]
mov byte [ebp - 7], al
mov cl, byte [0x1004a124]
mov byte [ebp - 8], cl
mov edx, dword [0x1004a190]
mov dword [ebp - 0x54], edx
mov eax, 0x5b0fb
mov dword [ebp - 0xac], 0x7cdddda5
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x58], 0x959a7fbf
mov dword [ebp - 0x5c], 0x2c042194
push 0x104
lea ecx, [ebp - 0x2b4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x1004a104], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esp, ebp
pop ebp
ret
Function at 0x1003479c
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 0x10034839
push ebx
push esi
call fcn.10034765
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.100346ae
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100347e6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10034838
push edi
push eax
call fcn.10035753
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10034806
call fcn.10032b3b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10034837
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100346ae
add esp, 0x20
test eax, eax
jne 0x10034825
push edi
call fcn.10032b3b
jmp 0x1003482d
push ebx
call fcn.10032b3b
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 0x10034aa4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003caf8
push 0x1003caf0
push str.FlsAlloc
push 0x1e
call fcn.100349c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10034ad8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b1b0]
call esi
jmp 0x10034ade
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10034b22
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003cb08
push 0x1003cb00
push str.FlsGetValue
push 0x20
call fcn.100349c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10034b59
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b1b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003a200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003a22d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003a22d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10006a10
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10006bd4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x10006a3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10006a41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10006a30
mov eax, 1
add ebx, ebx
jne 0x10006a53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10006a48
jne 0x10006a64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006a48
xor ecx, ecx
sub eax, 3
jb 0x10006a78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10006aea
mov ebp, eax
add ebx, ebx
jne 0x10006a83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10006a90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10006ab4
inc ecx
add ebx, ebx
jne 0x10006aa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10006a95
jne 0x10006ab1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006a95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10006ad4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10006ac5
jmp 0x10006a36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10006ad4
add edi, ecx
jmp 0x10006a36
pop esi
mov edi, esi
mov ecx, 0x11
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10006af2
cmp byte [edi], 0
jne 0x10006af2
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 0x10006af7
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x10006b66
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10006b24
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6054]
or eax, eax
je 0x10006b60
mov dword [ebx], eax
add ebx, 4
jmp 0x10006b41
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10006b97
cmp al, 0xef
ja 0x10006b8a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10006b6c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10006b79
mov ebp, dword [esi + 0x6058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x10006bcb
sub esp, 0xffffff80
jmp 0x10001087

Function at 0x43b630
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
add edx, edx
call fcn.0043b667
add esi, edx
xor dword [eax], ebx
add esi, edx
add esi, esi
sub edx, edx
inc eax
mov esi, 0xd77dec64
add edx, 0x28676da
cmp eax, edi
jne fcn.0043b630
sub esp, 4
mov dword [esp], esi
pop edx
inc edx
ret
Function at 0x403134
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x403171
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403191
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004054e4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403370
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405264
test esi, esi
jne 0x4033a7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00405354
jmp 0x4033c8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.0040320c
mov dword [esp], eax
test esi, esi
je 0x4033c8
cmp dword [ebx], 0
je 0x4033c8
dec esi
jmp 0x4033af
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403a58
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x55c008], 0x8088405
inc edx
mov dword [ebx + 0x55c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404264
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x55c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4042fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4042dc
xor eax, eax
push ebp
push 0x4042d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404318
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042dc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x55c024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x55c024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40505c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56504c], 0
je 0x4050bd
cmp word [0x565220], 0xd7b2
jne 0x405085
cmp dword [0x565228], 0
jbe 0x405085
mov eax, 0x56521c
call dword [0x565238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x55c074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4050e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55c034], 0
jne 0x4050d9
push 0
push 0x55c06c
push 0x55c074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret