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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40c240
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459c94
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40c270
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x40c270
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.00459c94
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x40c348
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40c299
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 0x40c2a5
movsx eax, bl
jmp 0x40c2dd
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 0x40c307
sub eax, 1
je 0x40c307
sub eax, 2
jne 0x40c348
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.00459c94
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40c325
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 0x40c348
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459c94
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.00459c94
mov esp, ebp
pop ebp
ret 4
Function at 0x40c880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x48800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40c93c
cmp byte [esi + 0x3d], 0
je 0x40c93c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40c92a
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 0x40c8f1
sub eax, 1
je 0x40c8f5
sub eax, 2
jne 0x40c92a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459c94
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40c913
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 0x40c92a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459c94
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459c94
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00459c94
mov esp, ebp
pop ebp
ret
Function at 0x41c450
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x41c4b1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x41c494
cmp edi, 2
jb 0x41c494
cmp byte [esi], cl
jne 0x41c494
cmp byte [esi + 1], cl
jne 0x41c494
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x47e2e0]
jmp 0x41c465
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x47e2e0]
test edi, edi
jne 0x41c465
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x41c4e0
cmp cl, 0x23
jne 0x41c4c7
cmp byte [esi], cl
jne 0x41c4c7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x47e2e0]
test cl, cl
jne 0x41c4b8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x41c5f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x41c604
mov dword [ebx], 0
mov edx, 0x47e0c0
call fcn.0041c4f0
mov esi, eax
test esi, esi
je 0x41c6f2
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x41c6e8
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x41c6e8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x41c6e8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x41c6e8
mov eax, dword [0x554f14]
test eax, eax
je 0x41c67c
inc dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x41c6e8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x41c6cd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x554f14]
add esp, 4
test eax, eax
je 0x41c6ba
dec dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x41c6df
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e790
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x48800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x47e2e0]
sub esi, 1
jne 0x41e7c3
mov eax, dword [0x554f14]
not ebx
cmp dword [eax + 0x1bf0], ebx
jne 0x41e7f2
mov dword [eax + 0x1bf4], ebx
cmp dword [eax + 0x1c2c], ebx
jne 0x41e801
mov byte [eax + 0x1c30], 1
cmp dword [eax + 0x1bd8], ebx
jne 0x41e81a
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.0042f000
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459c94
mov esp, ebp
pop ebp
ret 4

Function at 0x41e830
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x48800c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0xe0]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0xe4]
subss xmm0, xmm1
mov ecx, dword [edx + 0xc4]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xcc]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x47e2e0]
sub edi, 1
jne 0x41e8b0
mov eax, dword [0x554f14]
not edx
cmp dword [eax + 0x1bf0], edx
jne 0x41e8df
mov dword [eax + 0x1bf4], edx
cmp dword [eax + 0x1c2c], edx
jne 0x41e8ee
mov byte [eax + 0x1c30], 1
mov ecx, dword [ebp - 8]
mov eax, edx
pop edi
xor ecx, ebp
pop esi
call fcn.00459c94
mov esp, ebp
pop ebp
ret 4
Function at 0x422fa0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x422fdd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x422fc3
cmp byte [esi], bl
jne 0x422fc3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x47e2e0]
test bl, bl
jne 0x422fb4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00422f40

Function at 0x428580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x48800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x554f14]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1bb8]
mov esi, 4
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x47e2e0]
sub esi, 1
jne 0x4285c1
mov eax, dword [0x554f14]
not ebx
cmp dword [eax + 0x1bd8], ebx
jne 0x4285fb
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0042f000
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x428626
inc esi
test ecx, ecx
je 0x428614
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x428619
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.0042f930
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459c94
mov esp, ebp
pop ebp
ret
Function at 0x42e0f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2fb8], 0
lea esi, [edi + 0x2fbc]
je 0x42e172
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x42e12c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0042fcb0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.0041cca0
mov edx, dword [esi]
mov ecx, 0x554f10
push dword [edi + 0x2fb8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fc4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.0041cca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43799a
mov eax, dword [0x554f14]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x43798d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4379cb
mov eax, dword [0x554f14]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x4379be
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4379fc
mov eax, dword [0x554f14]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x4379ef
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x437a49
mov eax, dword [0x554f14]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x437a3c
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x437a7a
mov eax, dword [0x554f14]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x437a6d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x437aab
mov eax, dword [0x554f14]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x437a9e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0043a600
Function at 0x4535b0
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov ebx, edx
je 0x453621
mov cl, byte [ebx]
lea esi, [ebx + 1]
or eax, 0xffffffff
test cl, cl
je 0x4535f8
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x4535df
cmp byte [esi], cl
jne 0x4535df
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x47e2e0]
test cl, cl
jne 0x4535d0
mov ecx, dword [0x554f14]
not eax
cmp dword [ecx + 0x1bf0], eax
jne 0x45360e
mov dword [ecx + 0x1bf4], eax
cmp dword [ecx + 0x1c2c], eax
jne 0x453683
mov byte [ecx + 0x1c30], 1
pop edi
pop esi
pop ebx
ret
mov edi, dword [0x554f14]
xor edx, edx
mov eax, dword [edi + 0x1bb8]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xcc]
push dword [eax + ecx*4 - 4]
mov ecx, ebx
call fcn.0041c450
mov esi, eax
add esp, 4
cmp dword [edi + 0x1bf0], esi
jne 0x453659
mov dword [edi + 0x1bf4], esi
cmp dword [edi + 0x1c2c], esi
jne 0x453668
mov byte [edi + 0x1c30], 1
cmp dword [edi + 0x1bd8], esi
jne 0x453681
push ecx
push ebx
mov edx, 0xb
mov ecx, esi
call fcn.0042f000
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4593e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004593c4
pop esi
leave
ret 8

Function at 0x45a95c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45a99b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45a99b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45a99b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45a99b
cmp dword [ecx + 0x74], 0xe
jbe 0x45a99b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x404ddc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [0x410f84]
mov ebx, dword [ebp + 8]
and esi, 0xb987d2d5
mov dword [0x410e48], esi
cmp word [eax + 0x412238], 0
je 0x404e1f
add eax, 2
cmp eax, 0x2cb0
jne 0x404dfc
imul eax, dword [0x410dac], 0x517a422
mov dword [0x410d40], eax
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esp + 8], str.originatingContextName
mov dword [esp + 4], 0x412be0
mov dword [esp], esi
call fcn.0040e7b8
mov eax, dword [0x410be0]
mov dword [ebp - 0x24], edi
add eax, 0x261e38d0
mov dword [0x410f84], eax
mov eax, dword [0x410af0]
add eax, 0x42421d6a
mov dword [0x410be0], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x404e70
cmp dword [ebp + 0xc], 0
jne 0x404e77
xor eax, eax
jmp 0x404fef
sub esi, 0x4876c46a
mov eax, dword [0x410d40]
imul edi, dword [0x410dac], 0x8960805b
mov dword [0x410e48], esi
mov esi, dword [ebx + 0x3c]
lea ecx, [eax - 0xa56717e]
add eax, 0x38fa7590
add esi, ebx
mov dword [0x410f84], edi
mov edx, dword [esi + 0x78]
mov edi, dword [esi + 0x7c]
xor esi, esi
mov dword [0x410eb0], ecx
mov dword [0x410d40], eax
add edx, ebx
mov dword [ebp - 0x2c], edi
mov edi, dword [edx + 0x20]
mov dword [ebp - 0x30], edi
mov edi, dword [edx + 0x1c]
mov dword [ebp - 0x34], edi
mov edi, dword [edx + 0x24]
mov dword [ebp - 0x38], edi
cmp esi, dword [edx + 0x18]
jae 0x404fde
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
xor ecx, ecx
mov dword [ebp - 0x40], edx
add eax, ebx
mov edi, dword [eax + esi*4]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
add edi, ebx
mov dword [esp], edi
call fcn.00403cd4
cmp eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
jne 0x404fd8
mov eax, dword [ebp - 0x38]
add esi, esi
add esi, ebx
movzx eax, word [esi + eax]
mov esi, dword [ebp - 0x34]
lea eax, [ebx + eax*4]
mov ecx, dword [eax + esi]
add ecx, ebx
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jae 0x404f58
mov eax, dword [0x410e48]
add eax, 0x3fed3f99
mov dword [0x410af0], eax
mov eax, dword [0x410be0]
or eax, 0x595c77d9
mov dword [0x410f84], eax
call fcn.0040ca28
mov eax, dword [ebp - 0x24]
jmp 0x404fef
mov eax, dword [ebp - 0x2c]
add eax, ebx
add eax, edx
cmp ecx, eax
jae 0x404f2d
mov dword [esp], edi
call fcn.0040b888
mov ecx, dword [0x410e48]
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x20], ax
inc eax
mov word [ebp - 0x1e], ax
mov eax, dword [0x40f934]
lea edx, [ecx + 0x4061e7a1]
mov dword [0x410dac], edx
or edx, 0xeafe6ece
mov eax, dword [eax + 0x10]
mov dword [0x410af0], edx
xor dword [0x410f84], 0x7d531f98
test eax, eax
je 0x404e70
lea edx, [ebp - 0x24]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
call eax
sub esp, 0x10
test eax, eax
jns 0x404f2d
jmp 0x404e70
inc esi
jmp 0x404ed2
xor ecx, 0x6cda18f2
mov dword [0x410eb0], ecx
jmp 0x404e70
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40ba5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push esi
push ebx
mov ebx, edx
mov di, word [ebx]
lea ecx, [edi - 0x30]
cmp cx, 9
ja 0x40ba7b
add ebx, 2
jmp 0x40ba6a
mov ebx, dword [0x410df0]
mov esi, dword [ebp + 0xc]
mov edi, 0xb23
mov ecx, ebx
or ecx, 0xe05329ad
mov dword [0x410b98], ecx
movzx ecx, word [esi]
add esi, 2
test cx, cx
je 0x40bab8
add edi, ecx
cmp edi, 0x1265
jbe 0x40ba97
and ebx, 0xa6997e92
mov dword [0x410b98], ebx
mov ecx, dword [0x410b98]
mov esi, eax
xor ecx, 0xb16aaacc
mov dword [0x410df0], ecx
movzx edi, byte [esi]
lea ebx, [edi - 0x30]
cmp bl, 9
ja 0x40bada
inc esi
jmp 0x40bacc
mov esi, 0xc7b
movzx ebx, word [edx]
add edx, 2
test bx, bx
je 0x40bb00
add esi, ebx
cmp esi, 0x22e3
jbe 0x40badf
and ecx, 0x3c7b5a0f
mov dword [0x410df0], ecx
mov ecx, dword [0x410df0]
mov ebx, 0x760
movzx edx, byte [eax]
inc eax
test dl, dl
je 0x40bb1d
add ebx, edx
cmp ebx, 0x118b
jbe 0x40bb0b
lea eax, [ecx + 0x40516ae]
mov ecx, 0xfe8
add dword [ebp + 0xc], 2
mov edi, dword [ebp + 0xc]
movzx edx, word [edi - 2]
test dx, dx
je 0x40bb42
add ecx, edx
cmp ecx, 0xebd
jbe 0x40bb28
and eax, 0x2954a5c7
lea edx, [eax + 0x2ff6a5df]
mov dword [0x410df0], eax
mov dword [0x410b98], edx
mov esi, dword [ebp + 0x14]
mov dx, word [esi]
test dx, dx
je 0x40bb7e
sub edx, 0x30
cmp dx, 9
jbe 0x40bb78
add eax, 0x53ca2cb2
mov dword [0x410b98], eax
jmp 0x40bb7e
add dword [ebp + 0x14], 2
jmp 0x40bb58
pop ebx
mov eax, dword [0x410b98]
pop esi
pop edi
pop ebp
ret
Function at 0x406830
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40686f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40686f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40686f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40686f
cmp dword [ecx + 0x74], 0xe
jbe 0x40686f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40c3c3
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 0x40c460
push ebx
push esi
call fcn.0040c38c
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.0040c320
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c40d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c45f
push edi
push eax
call fcn.0040cfe0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c42d
call fcn.0040ae81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c45e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c320
add esp, 0x20
test eax, eax
jne 0x40c44c
push edi
call fcn.0040ae81
jmp 0x40c454
push ebx
call fcn.0040ae81
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 0x40d75d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44c268
push 0x44c260
push str.FlsAlloc
push 0x1f
call fcn.0040d61c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d791
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
jmp 0x40d797
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d7db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44c278
push 0x44c270
push str.FlsGetValue
push 0x21
call fcn.0040d61c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d812
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d81a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44c280
push 0x44c278
push str.FlsSetValue
push 0x22
call fcn.0040d61c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d854
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412cb0
Capabilities:
Parse pe header

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