joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d3b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x1001d3c9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.100297e0
push edx
push eax
call fcn.10029810
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x1001d416
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.100297e0
push edx
push eax
call fcn.10029810
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x1001d418
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x10020750
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x1002075f
jmp dword [ecx*4 + 0x100207b4]
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 0x10021ed0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10021f02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x10022040
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x1002205b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x1002208f
cmp eax, 2
jg 0x1002208f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x1004a474]
push 2
push edx
call fcn.10035cdd
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.10035cdd
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x1002241d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x100223f4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.10026580
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.10022220
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x85f4], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0x154]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x10026924
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10022220
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.100267e0
add esp, 4
pop esi
pop ecx
ret
Function at 0x100276c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [esp + 4], eax
jne 0x1002782a
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x100276f9
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10027706
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10027713
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10027747
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10027757
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10027763
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002776f
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002777c
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10027789
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
sub ecx, 2
push ecx
lea edx, [ebx + 0x1cb2]
push edx
push 0x3e
mov dword [ebx + 0x1eb4], eax
mov dword [ebp], edi
call fcn.10026c70
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x154]
push eax
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x100277e9
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.10022220
add esp, 0xc
lea edx, [ebx + 0x1cb3]
push 4
push edx
call fcn.10027550
mov eax, dword [edi + 0x154]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push eax
call ebp
test eax, eax
jge 0x10027827
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.10022220
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10029010
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x10046850
push ecx
call fcn.10022190
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.100281c0
test eax, eax
jne 0x10029040
mov eax, esi
jmp fcn.10028650
ret
Function at 0x1002fce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
js 0x1002fcfe
sbb byte [edx + eax - 0x6a], dh
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.1002db23
clc
xchg ebx, eax
cmp al, 5
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1002db23
lodsb al, byte [esi]
and eax, 0x8b492abf
xor al, 0x8b
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x1002fd10
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x1002fd10
call fcn.1002db23
mov al, 0xb4
pop ebx
push ds
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.1002db23
jg 0x1002fcfd
in eax, dx
ud0

Function at 0x10031d7a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10051060]
jne 0x10031d84
repz ret
jmp fcn.10036344

Function at 0x10040e32
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100364bc
and dword [ebp - 4], 0
cmp dword [0x10052ebc], 0
mov ebx, eax
jne 0x10040ee3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10040f94
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10040f94
push eax
call fcn.1003644a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10052ebc], eax
call esi
push eax
call fcn.1003644a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10052ec0], eax
call esi
push eax
call fcn.1003644a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10052ec4], eax
call esi
push eax
call fcn.1003644a
pop ecx
mov dword [0x10052ecc], eax
test eax, eax
je 0x10040ee3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003644a
pop ecx
mov dword [0x10052ec8], eax
mov eax, dword [0x10052ec8]
cmp eax, ebx
je 0x10040f3b
cmp dword [0x10052ecc], ebx
je 0x10040f3b
push eax
call fcn.100364c5
push dword [0x10052ecc]
mov esi, eax
call fcn.100364c5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10040f3b
test edi, edi
je 0x10040f3b
call esi
test eax, eax
je 0x10040f32
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10040f32
test byte [ebp - 0xc], 1
jne 0x10040f3b
or dword [ebp + 0x10], 0x200000
jmp 0x10040f74
mov eax, dword [0x10052ec0]
cmp eax, ebx
je 0x10040f74
push eax
call fcn.100364c5
pop ecx
test eax, eax
je 0x10040f74
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10040f74
mov eax, dword [0x10052ec4]
cmp eax, ebx
je 0x10040f74
push eax
call fcn.100364c5
pop ecx
test eax, eax
je 0x10040f74
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10052ebc]
call fcn.100364c5
pop ecx
test eax, eax
je 0x10040f94
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10040f96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x454f60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3d000]
push edi
jmp 0x454f7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x454f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454f70
mov eax, 1
add ebx, ebx
jne 0x454f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x454fa4
jne 0x454fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454fc3
dec eax
add ebx, ebx
jne 0x454fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x454f88
add ebx, ebx
jne 0x454fbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x455015
xor ecx, ecx
sub eax, 3
jb 0x454fdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45504a
sar eax, 1
mov ebp, eax
jmp 0x454fe6
add ebx, ebx
jne 0x454fe6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454fb4
inc ecx
add ebx, ebx
jne 0x454ff4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454fb4
add ebx, ebx
jne 0x455001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x454ff6
jne 0x455012
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x454ff6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x455034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x455026
jmp 0x454f76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x455034
add edi, ecx
jmp 0x454f76
pop esi
mov edi, esi
mov ecx, 0xe06
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x455052
cmp byte [edi], 0x11
jne 0x455052
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 0x455057
lea edi, [esi + 0x52000]
mov eax, dword [edi]
or eax, eax
je 0x4550cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x56e04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x56f00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x455084
mov ecx, edi
jns 0x4550b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x56f08]
or eax, eax
je 0x4550c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4550a1
call dword [esi + 0x56f04]
mov ebp, dword [esi + 0x56f0c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x455103
sub esp, 0xffffff80
jmp 0x41d1f8
Function at 0xf18a40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb0f000]
push edi
jmp 0xf18a5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf18a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf18a50
mov eax, 1
add ebx, ebx
jne 0xf18a73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf18a68
jne 0xf18a84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf18a68
xor ecx, ecx
sub eax, 3
jb 0xf18a98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf18b0a
mov ebp, eax
add ebx, ebx
jne 0xf18aa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xf18ab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xf18ad4
inc ecx
add ebx, ebx
jne 0xf18ac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf18ab5
jne 0xf18ad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf18ab5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf18af4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf18ae5
jmp 0xf18a56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf18af4
add edi, ecx
jmp 0xf18a56
pop esi
mov edi, esi
mov ecx, 0x77b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf18b12
cmp byte [edi], 7
jne 0xf18b12
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 0xf18b17
lea edi, [esi + 0xb16000]
mov eax, dword [edi]
or eax, eax
je 0xf18b86
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1c2ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb1c328]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf18b44
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb1c330]
or eax, eax
je 0xf18b80
mov dword [ebx], eax
add ebx, 4
jmp 0xf18b61
call dword [esi + 0xb1c32c]
mov ebp, dword [esi + 0xb1c334]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0xf18bba
sub esp, 0xffffff80
jmp 0x408b56

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 0x10001d10
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10ac
call fcn.1001c5b0
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x487]
push ebx
push eax
mov dword [ebp - 0x10a8], 0x1002d598
mov dword [ebp - 0x10a4], ebx
mov byte [ebp - 0x488], bl
call fcn.1001c790
push 0x7f
lea eax, [ebp - 0x87]
push ebx
push eax
mov byte [ebp - 0x88], bl
call fcn.1001c790
push 0xc13
lea eax, [ebp - 0x109f]
push ebx
push eax
mov byte [ebp - 0x10a0], bl
call fcn.1001c790
mov eax, dword [0x1003e0a0]
add esp, 0x24
cmp eax, ebx
je 0x10001f0b
lea esi, [ebp - 0x10a0]
call fcn.10008c20
push 0x10041dc0
push 0x1002d590
mov esi, 0x400
lea eax, [ebp - 0x8a0]
push esi
push eax
call fcn.10014b26
push dword [0x100419a0]
lea eax, [ebp - 0x88]
push 0x1002d59c
push 0x80
push eax
call fcn.10014b26
lea eax, [ebp - 0x88]
add esp, 0x20
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001de0
push dword [0x1003e0a0]
sub eax, edi
push dword [0x1003e09c]
push eax
lea eax, [ebp - 0x88]
push eax
push 0xd
pop edx
call fcn.1000a566
push eax
lea ecx, [ebp - 0x10a0]
call fcn.1000859a
lea eax, [ebp - 0xca0]
add esp, 0x14
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001e1d
sub eax, edi
jne 0x10001e46
lea eax, [ebp - 0x8a0]
push eax
push 0x1002d590
lea eax, [ebp - 0x488]
push esi
push eax
call fcn.10014b26
add esp, 0x10
jmp 0x10001e69
lea eax, [ebp - 0xca0]
push eax
lea eax, [ebp - 0x8a0]
push eax
push 0x1002d5a0
lea eax, [ebp - 0x488]
push esi
push eax
call fcn.10014b26
add esp, 0x14
call fcn.1000a9a9
xor edx, edx
push ebx
inc edx
call fcn.1000a521
and al, 8
xor ecx, ecx
cmp al, 8
setne cl
lea eax, [ebp - 0x10a8]
dec ecx
and ecx, 0x803000
add ecx, 0x84680200
push ecx
push eax
push ebx
push ebx
lea eax, [ebp - 0x488]
push eax
push 0x1b
pop edx
call fcn.1000a566
push eax
push dword [0x1003e098]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
push esi
call fcn.10001ccb
lea eax, [ebp - 0x10a0]
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001ec5
push dword [ebp - 0x49c]
sub eax, edi
push dword [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x10a0]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x1003e0a0]
lea esi, [ebp - 0x10a0]
call fcn.10008cc5
mov dword [0x1003e0a0], ebx
call fcn.1000a9ca
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100148e0
leave
ret
Function at 0x1000229b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1003e0a4], 1
je 0x100022fe
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x100022da
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call fcn.1001529e
push 0x14
pop edx
mov dword [0x1003e0a4], 1
call fcn.1000a533
push 0x13
pop edx
mov dword [0x1003e0a8], eax
call fcn.1000a533
mov dword [0x1003e0ac], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148e0
leave
ret
Function at 0x1000300b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.1000229b
call fcn.1000230a
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x10003048
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003035
cmp word [eax + 0xa], 4
je 0x1000304e
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x10003021
xor eax, eax
pop esi
pop ecx
pop ebp
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x1000304a

Function at 0x100031d3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
call fcn.1000230a
xor esi, esi
push edi
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x10
push dword [ebp + 8]
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x10003214
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x100031e4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp dword [eax + 0x18], edi
jbe 0x10003262
mov dword [ebp - 4], 0x1c
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + eax]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003230
sub eax, esi
mov esi, eax
add edi, esi
cmp edi, 0x400
jge 0x1000326e
push esi
push ecx
push dword [ebp + 0xc]
call fcn.1001b5b0
add dword [ebp + 0xc], esi
mov eax, dword [ebp - 8]
add dword [ebp - 4], 4
add esp, 0xc
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x10003225
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, edi
jmp 0x1000320f
push 0xfffffffffffffffe
pop eax
jmp 0x1000320f

Function at 0x10003273
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000230a
xor edi, edi
xor esi, esi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1c
push dword [ebp + 8]
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x100032b1
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x10003282
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
lea esi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
push eax
movsd dword es:[edi], dword [esi]
call sub.DNSAPI.dll_DnsFree
push 0x10
pop eax
jmp 0x100032ad

Function at 0x100032cb
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1000229b
push 0x50
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000330e
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x1000330e
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x10003313
mov eax, str.unknown
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148e0
leave
ret
Function at 0x10003333
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp esi, 0x3ff
mov eax, dword [ebp + 8]
jg 0x10003377
push esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.10014be0
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
mov byte [ebp + esi - 0x404], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148e0
leave
ret

Function at 0x100035f8
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 0xa000
xor ebx, ebx
call fcn.10007a9f
mov edx, eax
pop ecx
mov esi, 0x4000
mov dword [ebp - 0x1c], edx
call fcn.10007b4f
mov esi, 0x400
mov dword [ebp - 8], eax
call fcn.10007b4f
mov dword [ebp - 0x10], eax
call fcn.10007b4f
mov dword [ebp - 0x14], eax
call fcn.10007b4f
mov dword [ebp - 0xc], eax
call fcn.10007b4f
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.1001c790
mov dword [ebp - 0x78], edi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4000
push dword [ebp - 8]
xor eax, eax
push dword [ebp + 0x14]
mov dword [ebp - 0x4c], 0x101
mov word [ebp - 0x48], ax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x70], ebx
call fcn.100035bc
add esp, 0xc
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.100035bc
add esp, 0xc
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.100035bc
add esp, 0xc
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.100035bc
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push ebx
push ebx
call edi
cmp eax, esi
jae 0x100036de
push dword [ebp - 4]
push esi
call edi
mov eax, dword [ebp - 4]
jmp 0x100036e0
mov eax, ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
push ebx
push 0x8000400
push dword [ebp - 8]
push ebx
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x10003727
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push str._s_as__s_s:__d
push 0x35
call fcn.10001b47
add esp, 0x18
mov esi, dword [ebp - 0x1c]
call fcn.10007adf
pop edi
pop esi
pop ebx
leave
ret