joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013cf0
Capabilities:
Convert ip address from string
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x10024040]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x10013d3a
push str.socket_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
mov eax, 2
mov word [esp + 0xc], ax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x18], 0xf
mov word [esp + 0xe], ax
lea eax, [esi + 4]
jbe 0x10013d5f
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10013d90
push str.inet_pton_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
push 4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
push 4
push 0xffff
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10013dd3
push str.setsockopt_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10013e07
push str.bind_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
push accept
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10013e39
push str.listen_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov al, 1
mov byte [esi + 0x24], 1
pop esi
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
Function at 0x10013e50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10024040]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10013e7c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x20], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x10013eaf
push str.socket_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
mov eax, 2
mov word [esp + 4], ax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x18], 0xf
mov word [esp + 6], ax
lea eax, [esi + 4]
jbe 0x10013ed4
mov eax, dword [eax]
lea ecx, [esp + 8]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10013f05
push str.inet_pton_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [esp + 8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10013f39
push str.connect_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov al, 1
mov byte [esi + 0x24], 1
pop esi
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret

Function at 0x10013f50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x10013f80
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x10013f80
push dword [ebp + 0x10]
push eax
push edx
push dword [ecx + 0x20]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10013f86
push str.send_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop ebp
ret 0xc
mov al, 1
pop ebp
ret 0xc

Function at 0x10013f90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x10013fd1
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x10013fd1
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp + 0x10]
push esi
push edi
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x10013fda
push str.recv_failed
call fcn.10003ef0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
Function at 0x10013ff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x1001403a
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x1001403a
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp + 0x10]
push esi
push edi
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10014029
mov dword [ecx], eax
test eax, eax
jg 0x10014043
push str.recv_failed
call fcn.10003ef0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x10
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x10

Function at 0x10014050
Capabilities:
Convert ip address from string
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x10024040]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1001407c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x20], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x100140af
push str.socket_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
mov eax, 2
mov word [esp + 0xc], ax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x18], 0xf
mov word [esp + 0xe], ax
lea eax, [esi + 4]
jbe 0x100140d4
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10014105
push str.inet_pton_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
push 4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
push 4
push 0xffff
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10014148
push str.setsockopt_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1001417c
push str.bind_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov al, 1
mov byte [esi + 0x24], 1
pop esi
xor ecx, esp
call fcn.100196fd
mov esp, ebp
pop ebp
ret
Function at 0x100141a0
Capabilities:
Convert ip address from string
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100141bf
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x20], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x100141e7
push str.socket_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 2
mov word [esi + 0x28], ax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esi + 4]
mov word [esi + 0x2a], ax
cmp dword [ecx + 0x14], 0xf
jbe 0x1001420a
mov ecx, dword [ecx]
lea eax, [esi + 0x2c]
push eax
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1001422f
push str.inet_pton_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x24], 1
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10014240
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10014277
mov edx, dword [ebp + 0xc]
test edx, edx
jle 0x10014277
push 0x10
lea eax, [ecx + 0x28]
push eax
push dword [ebp + 0x10]
push edx
push dword [ebp + 8]
push dword [ecx + 0x20]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x1001427d
push str.sendto_failed
call fcn.10003ef0
add esp, 4
xor al, al
pop ebp
ret 0xc
mov al, 1
pop ebp
ret 0xc

Function at 0x10014290
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10024040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x100142ed
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x100142ed
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0x28]
push eax
push dword [ebp + 0x10]
push esi
push edi
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jg 0x10014302
push str.recvfrom_failed
call fcn.10003ef0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100196fd
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100196fd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10014320
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10024040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
test edi, edi
je 0x1001438a
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x1001438a
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
add esp, 0xc
mov dword [ebp - 8], 0x10
push eax
lea eax, [ecx + 0x28]
push eax
push dword [ebp + 0x10]
push esi
push edi
push dword [ecx + 0x20]
call dword [sym.imp.WS2_32.dll_recvfrom]
test ebx, ebx
je 0x10014379
mov dword [ebx], eax
test eax, eax
jg 0x1001439f
push str.recvfrom_failed
call fcn.10003ef0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100196fd
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100196fd
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10014440
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bddd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x10024040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
cmp dword [eax + 0xc], 0
lea ebx, [eax + 4]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
je 0x100144f3
cmp dword [esi + 0x14], 0xf
mov edi, esi
mov ebx, dword [esi + 0x10]
jbe 0x1001448c
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x100144ab
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10014497
mov eax, dword [ebp - 0x10]
push edx
push esi
lea ecx, [ebp - 0x1c]
lea ebx, [eax + 4]
push ecx
mov ecx, ebx
call fcn.10014c40
mov eax, dword [eax + 4]
test eax, eax
jne 0x100144c5
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx + 8]
je 0x100144f0
push str.Module_is_already_exist
call fcn.10003ef0
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100144da
push esi
lea ecx, [ebp - 0x38]
call fcn.100056c0
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.100147c0
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x10014558
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001454e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001454e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001973b
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10014570
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x14], ebx
cmp dword [ebx + 0xc], 0
jne 0x100145a0
push str.There_is_no_available_module
call fcn.10003ef0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
lea eax, [ebx + 4]
mov edi, esi
cmp dword [esi + 0x14], 0xf
jbe 0x100145b0
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [esi + 0x10], ecx
jbe 0x100145d5
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [esi + 0x10]
jb 0x100145c0
lea eax, [ebx + 4]
push edx
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.10014c40
mov esi, dword [eax + 4]
test esi, esi
jne 0x100145ed
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 8]
jne 0x1001460a
push str.Module_is_not_exist
call fcn.10003ef0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x10014595
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10014630
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x20], 0
cmp dword [esi + 0x1c], 0xf
lea edi, [esi + 8]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
jbe 0x1001464a
mov eax, dword [edi]
mov dword [esp + 0xc], eax
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [edi + 0x10], ecx
jbe 0x10014678
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10014660
mov ebx, dword [esp + 0x14]
lea edi, [esi + 8]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x10]
and ecx, edx
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x100146a0
cmp eax, esi
jne 0x10014698
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x100146a8
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x100146a8
cmp eax, esi
jne 0x100146a8
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
dec dword [ebx + 0xc]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x100146e7
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x100146dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001470e
mov eax, edx
push ecx
push eax
call fcn.1001973b
add esp, 8
push 0x24
push esi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.1001973b
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x10017060
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0xf
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jbe 0x1001707e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x100170a4
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10017090
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10014c40
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x100170c4
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x10019530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1001954f
push 0
push 0
push dword [ebp + 8]
push 0x10019450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x401b5a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b99
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b99
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b99
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b99
cmp dword [ecx + 0x74], 0xe
jbe 0x401b99
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
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 0x401000
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push ebx
mov ebx, eax
lea ecx, [ebx*4]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
push ebp
mov eax, edx
push esi
shr eax, 0x1f
push edi
add eax, edx
lea ecx, [ecx + eax*2 + 0xa]
push 1
push ecx
call fcn.0041b337
mov edx, dword [esp + 0x24]
add esp, 8
xor ebp, ebp
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], eax
mov ecx, eax
mov dword [esp + 0x1c], edx
test ebx, ebx
jl 0x4010fe
mov dword [esp + 0x10], ebx
mov edi, edi
mov eax, 0xaaaaaaab
mul ebp
shr edx, 1
lea eax, [edx + edx*2]
mov edx, ebp
sub edx, eax
jne 0x4010de
test ebp, ebp
je 0x4010de
mov eax, esi
sar eax, 8
and eax, 0xffffff
mov edx, eax
sar edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov edx, eax
sar edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], dl
inc ecx
mov edx, eax
sar edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
add edi, 4
inc ecx
xor esi, esi
cmp edi, 0x4c
jl 0x4010d7
mov byte [ecx], 0xd
inc ecx
mov byte [ecx], 0xa
inc ecx
xor edi, edi
cmp dword [esp + 0x10], 3
jl 0x4010fe
mov eax, dword [esp + 0x1c]
movzx edx, byte [eax]
dec dword [esp + 0x10]
or edx, esi
shl edx, 8
inc ebp
inc eax
cmp ebp, ebx
mov esi, edx
mov dword [esp + 0x1c], eax
jle 0x401060
mov eax, ebx
sub eax, ebp
cdq
mov esi, 3
idiv esi
mov esi, edx
test esi, esi
je 0x4011d3
mov edi, dword [esp + 0x1c]
jle 0x40112a
mov dl, byte [edi]
movsx eax, dl
movzx edx, dl
or eax, edx
shl eax, 8
inc edi
jmp 0x40112c
xor eax, eax
cmp esi, 1
jle 0x401145
mov dl, byte [edi]
movsx ebx, dl
movzx edx, dl
or ebx, edx
or ebx, eax
shl ebx, 8
mov eax, ebx
inc edi
jmp 0x401148
shl eax, 8
cmp esi, 2
jle 0x401160
mov dl, byte [edi]
movsx edi, dl
movzx edx, dl
or edi, edx
or edi, eax
shl edi, 8
mov eax, edi
jmp 0x401163
shl eax, 8
sar eax, 8
and eax, 0xffffff
cmp esi, 1
jl 0x401194
mov edx, eax
sar edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov edx, eax
sar edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
cmp esi, 2
jl 0x4011aa
mov edx, eax
sar edx, 6
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
cmp esi, 3
jl 0x4011c0
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
cmp esi, 3
jge 0x4011d3
mov edx, 3
sub edx, esi
push edx
push 0x3d
push ecx
call fcn.0041d620
add esp, 0xc
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x401300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401319
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401354
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401350
lea ebx, [ebx]
cmp esi, eax
jae 0x401354
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401340
cmp esi, eax
jb 0x40135a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401970
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43279d
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
push ebx
push esi
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov esi, ecx
push str.Mummy
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4019e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0040b1c3
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdiplusStartup
push 0x437674
mov ecx, esi
call fcn.0040b8ae
lea eax, [esp + 0x2c]
push eax
call fcn.00401d10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c8], ebx
mov dword [esi + 0x20], ecx
call fcn.0040c1c4
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x1cc], 0xffffffff
call fcn.00401a80
xor eax, eax
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040c3fc