joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4135e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1c8], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x41371b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41365c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004164b0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00411180
add esp, 0x18
jmp 0x413724
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41369c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004164b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00411180
add esp, 0x18
jmp 0x413724
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.004135a0
test eax, eax
jne 0x4136da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004164b0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00411180
add esp, 0x18
jmp 0x413724
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.004135a0
test eax, eax
jne 0x41371b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004164b0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00411180
add esp, 0x18
jmp 0x413724
push ebp
call fcn.00413540
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cf1f2
add esp, 0x10c
ret

Function at 0x413740
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x34c]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x413783
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004164b0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004110f0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004110f0
add esp, 8
pop esi
pop ecx
ret
Function at 0x4137a0
Capabilities:
Check os version
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp dword [0x5421c0], 0
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
jne 0x41382f
push 0x94
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004d1130
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x94
mov dword [0x5421c0], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41382f
cmp dword [esp + 0x10], 6
jb 0x41382f
mov dword [0x5421c0], 2
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004cf1f2
add esp, 0xa4
ret
cmp dword [0x5421c0], 2
je 0x413882
push esi
mov esi, dword [esp + 0xac]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x413869
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x413881
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004cf1f2
add esp, 0xa4
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x590]
test esi, esi
je 0x41390d
mov eax, dword [edi + 0x44]
test eax, eax
je 0x41390d
push 0x4138a0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x30]
push ecx
push edx
call fcn.0041f490
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x413916
mov dword [edi + 0x590], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x413920
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
je 0x413945
push esi
call fcn.00407970
add esp, 4
test eax, eax
jne 0x413959
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x41390d
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x413f40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, dword [edi + ebx*4 + 0x134]
mov ebp, dword [edi]
mov dword [eax], 0
cmp dword [edi + ebx*4 + 0x1e8], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 0
je 0x413f88
mov dword [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
call fcn.00410cd0
mov dword [esp + 0x18], eax
push 1
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x28], edx
call fcn.00412fe0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jge 0x413fc8
push str.Connection_time_out
push ebp
call fcn.00411180
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x10
ret
mov eax, esi
call fcn.004130a0
cmp eax, 1
jne 0x414012
mov ecx, dword [edi + 0x22c]
mov edx, dword [edi + 0x228]
mov eax, dword [esp + 0x1c]
mov ebx, dword [edi + 0x234]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.00410d00
add esp, 0x10
cmp eax, ebx
jl 0x413f7e
push ebx
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.004110f0
add esp, 0xc
jmp 0x4140ce
test eax, eax
jne 0x41407e
push esi
lea esi, [esp + 0x28]
call fcn.004134d0
add esp, 4
test eax, eax
je 0x4140b9
push edi
call fcn.00408e80
add esp, 4
test eax, eax
jne 0x41412d
mov edx, dword [esp + 0x2c]
mov dword [edi + ebx*4 + 0x1e8], 1
mov dword [edx], 1
test ebx, ebx
jne 0x414060
push 2
push ebp
call fcn.004196c0
add esp, 8
push edi
call fcn.00408fc0
mov eax, dword [esp + 0x18]
push eax
push edi
call fcn.004135e0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
cmp eax, 2
jne 0x4140a9
push esi
lea esi, [esp + 0x28]
call fcn.004134d0
mov esi, dword [esp + 0x28]
push esi
push edi
call fcn.004164b0
push eax
push 0x4efdb8
push ebp
call fcn.004110f0
add esp, 0x18
jmp 0x4140bd
push str.Connection_failed_n
push ebp
call fcn.004110f0
add esp, 8
jmp 0x4140ce
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4140ce
push esi
mov dword [ebp + 0x85cc], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + 0x1c], 0
mov eax, dword [esp + 0x10]
je 0x4140e0
cdq
sub eax, edx
sar eax, 1
mov ebx, dword [esp + 0x2c]
mov dword [edi + 0x234], eax
mov eax, dword [esp + 0x28]
mov esi, edi
call fcn.00413eb0
mov esi, eax
test esi, esi
je 0x41412b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
mov dword [ebp + 0x85cc], eax
call fcn.004164b0
mov edx, dword [edi + 0x98]
push eax
mov eax, dword [edi + 0x80]
push edx
push eax
push str.Failed_connect_to__s:_ld___s
push ebp
call fcn.00411180
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x414190
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x414341
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x41431f
push esi
jmp 0x4141e0
cmp dword [edi + 4], 2
jne 0x414298
cmp dword [edi + 0x18], ebx
je 0x414298
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x414298
cmp eax, 0x10
jb 0x414298
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4142a5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4142af
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x414285
push eax
call dword [0x53800c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4142c3
cmp dword [esp + 0x10], ebx
jne 0x41428f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x414296
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4141e0
jmp 0x4142df
mov dword [esp + 0x14], 8
jmp 0x4142df
push esi
mov dword [esp + 0x18], 8
call dword [0x538004]
add esp, 4
jmp 0x4142df
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x538004]
push esi
call dword [0x538004]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x4142ef
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x414319
mov eax, dword [esp + 0xc]
push eax
call fcn.00414140
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x414332
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4159d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004d0571
add esp, 0x18
test eax, eax
je 0x4159f3
cmp eax, 0xffffffff
jne 0x4159f5
xor eax, eax
ret
Function at 0x416680
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x41668f
jmp dword [ecx*4 + 0x4166e4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
Function at 0x420c10
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004d3774
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x420c75
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x420c75
lea edx, [esp]
push edx
call dword [0x53800c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004cf1f2
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004cf1f2
add esp, 0x108
ret
jmp 0x420c10

Function at 0x420c90
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004d3774
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x420c75
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x420c75
lea edx, [esp]
push edx
call dword [0x53800c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004cf1f2
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004cf1f2
add esp, 0x108
ret
jmp 0x420c10
Function at 0x4256a0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4256c2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4256b6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4256f2
cmp dword [esi + 8], 0
jne 0x4256e5
mov ecx, dword [eax + 8]
push 0x4f46bc
push ecx
call fcn.004d2b76
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4256e5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004cf94a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x425714
mov eax, dword [esi + 8]
test eax, eax
je 0x42570e
push eax
call fcn.004cfc3f
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x426db0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x426de2
push 0x2e
push esi
call fcn.004d1940
add esp, 8
test eax, eax
je 0x426de0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x426fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004d3ef0
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x427017
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004cf1f2
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.004d4079
add esp, 8
test eax, eax
jl 0x427000
mov eax, 8
call fcn.004d3ef0
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.00426e40
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x427000
push 0x4f46bc
push esi
call fcn.004d2b76
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
test edi, edi
je 0x427111
test dword [esp + 0x4e], 0x2000
je 0x427094
cmp ebx, 0xffffffff
jne 0x42707e
mov ebx, 0x800
push 0
push 4
push 0
push edi
call fcn.004d3f1b
add esp, 0x10
jmp 0x427094
mov edi, dword [esp + 0x40]
test ebx, ebx
jle 0x4270a2
cmp ebx, 0x400
mov esi, ebx
jl 0x4270a7
mov esi, 0x400
push edi
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.004cf94a
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x4270f5
fild dword [esp + 0x44]
mov eax, 8
call fcn.004d3ef0
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.00426e40
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x427090
sub ebx, esi
test ebx, ebx
jg 0x427090
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004cfc3f
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.00436720
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cf1f2
mov esp, ebp
pop ebp
ret
Function at 0x4327f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x432822
jmp dword [edx*4 + 0x43294c]
mov edi, 0xa
cmp ebx, edi
jle case.0x432822.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x432833
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret
Function at 0x433d90
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.004d1130
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x4399f0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004d3ef0
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x439a77
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x439a77
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004d4d9f
add esp, 0x10
test eax, eax
jge 0x439a4d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004cf1f2
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004d4d9f
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x439b09
call fcn.004398b0
test eax, eax
jle 0x439b09
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x439b1d
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004cf1f2
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004cf1f2
add esp, 0x108
ret

Function at 0x439b70
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x439b98
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
sub edi, 1
jne 0x439b87
pop esi
pop ebx
movzx eax, cl
pop edi
ret
Function at 0x43e3d0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.0043dd50
mov edi, eax
add esp, 4
test edi, edi
jne 0x43e476
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0042cee0
push 0x5077c8
push esi
push 0x5077c4
push ebx
push str.fopen_
push 5
call fcn.0042d1e0
add esp, 0x2c
call fcn.004d1557
cmp dword [eax], 2
je 0x43e455
call fcn.004d1557
cmp dword [eax], 6
je 0x43e455
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0042cee0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0042cee0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x5384d8
call fcn.004285a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43e498
push edi
call fcn.004cfc3f
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00427fe0
push edi
push 1
push 0x6a
push esi
call fcn.00428340
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x443e70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x443eb7
mov al, byte [edx]
test al, al
je 0x443eb7
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x443e87
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret